pub struct ActerPin { /* private fields */ }
Implementations§
Source§impl Pin
helpers for content
impl Pin
helpers for content
pub fn title(&self) -> String
pub fn has_formatted_text(&self) -> bool
pub async fn ref_details(&self) -> Result<RefDetails>
pub fn content_formatted(&self) -> Option<String>
pub fn content(&self) -> Option<MsgContent>
pub fn display(&self) -> Option<Display>
pub fn url(&self) -> Option<String>
pub fn event_id_str(&self) -> String
pub fn room_id_str(&self) -> String
pub fn sender(&self) -> OwnedUserId
Source§impl Pin
Custom functions
impl Pin
Custom functions
pub async fn refresh(&self) -> Result<Pin>
pub async fn can_redact(&self) -> Result<bool>
pub fn update_builder(&self) -> Result<PinUpdateBuilder>
pub fn subscribe_stream(&self) -> impl Stream<Item = bool>
pub fn subscribe(&self) -> Receiver<()>
pub async fn comments(&self) -> Result<CommentsManager>
pub async fn attachments(&self) -> Result<AttachmentsManager>
Methods from Deref<Target = PinEventContent>§
Sourcepub fn content(&self) -> &Option<TextMessageEventContent>
pub fn content(&self) -> &Option<TextMessageEventContent>
Optionally the Pin has some further content
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pin
impl !RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl !UnwindSafe for Pin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more