pub struct Story { /* private fields */ }
Implementations§
Source§impl Story
Custom functions
impl Story
Custom functions
pub async fn new(client: Client, room: Room, content: Story) -> Result<Self>
pub fn slides_count(&self) -> u8
pub fn get_slide(&self, pos: u8) -> Option<StorySlide>
pub fn slides(&self) -> Vec<StorySlide>
pub async fn refresh(&self) -> Result<Story>
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<StoryUpdateBuilder>
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 = StoryEventContent>§
Sourcepub fn slides(&self) -> &Vec<StorySlide>
pub fn slides(&self) -> &Vec<StorySlide>
A Story entry may have one or more slides of Story which are scrolled through horizontally
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Story
impl !RefUnwindSafe for Story
impl Send for Story
impl Sync for Story
impl Unpin for Story
impl !UnwindSafe for Story
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