pub struct NewsEntry { /* private fields */ }
Implementations§
Source§impl NewsEntry
Custom functions
impl NewsEntry
Custom functions
pub fn new(client: Client, room: Room, content: NewsEntry) -> Self
pub fn slides_count(&self) -> u8
pub fn get_slide(&self, pos: u8) -> Option<NewsSlide>
pub fn slides(&self) -> Vec<NewsSlide>
pub async fn refresh(&self) -> Result<NewsEntry>
pub async fn can_redact(&self) -> Result<bool>
pub async fn reactions(&self) -> Result<ReactionManager>
pub async fn read_receipts(&self) -> Result<ReadReceiptsManager>
pub fn update_builder(&self) -> Result<NewsEntryUpdateBuilder>
pub fn subscribe_stream(&self) -> impl Stream<Item = bool>
pub fn subscribe(&self) -> Receiver<()>
pub async fn comments(&self) -> Result<CommentsManager>
pub fn room_id(&self) -> OwnedRoomId
pub fn sender(&self) -> OwnedUserId
pub fn event_id(&self) -> OwnedEventId
pub fn origin_server_ts(&self) -> u64
pub async fn ref_details(&self) -> Result<RefDetails>
pub fn internal_link(&self) -> String
Methods from Deref<Target = NewsEntryEventContent>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewsEntry
impl !RefUnwindSafe for NewsEntry
impl Send for NewsEntry
impl Sync for NewsEntry
impl Unpin for NewsEntry
impl !UnwindSafe for NewsEntry
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