Struct tdlib::types::Story

source ·
pub struct Story {
Show 15 fields pub id: i32, pub sender_chat_id: i64, pub date: i32, pub is_being_edited: bool, pub is_edited: bool, pub is_pinned: bool, pub is_visible_only_for_self: bool, pub can_be_forwarded: bool, pub can_be_replied: bool, pub can_get_viewers: bool, pub has_expired_viewers: bool, pub interaction_info: Option<StoryInteractionInfo>, pub privacy_settings: StoryPrivacySettings, pub content: StoryContent, pub caption: FormattedText,
}
Expand description

Represents a story

Fields§

§id: i32

Unique story identifier among stories of the given sender

§sender_chat_id: i64

Identifier of the chat that posted the story

§date: i32

Point in time (Unix timestamp) when the story was published

§is_being_edited: bool

True, if the story is being edited by the current user

§is_edited: bool

True, if the story was edited

§is_pinned: bool

True, if the story is saved in the sender’s profile and will be available there after expiration

§is_visible_only_for_self: bool

True, if the story is visible only for the current user

§can_be_forwarded: bool

True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also forbidden

§can_be_replied: bool

True, if the story can be replied in the chat with the story sender

§can_get_viewers: bool

True, if users viewed the story can be received through getStoryViewers

§has_expired_viewers: bool

True, if users viewed the story can’t be received, because the story has expired more than getOption(“story_viewers_expiration_delay”) seconds ago

§interaction_info: Option<StoryInteractionInfo>

Information about interactions with the story; may be null if the story isn’t owned or there were no interactions

§privacy_settings: StoryPrivacySettings

Privacy rules affecting story visibility; may be approximate for non-owned stories

§content: StoryContent

Content of the story

§caption: FormattedText

Caption of the story

Trait Implementations§

source§

impl Clone for Story

source§

fn clone(&self) -> Story

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Story

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Story

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<Story> for Story

source§

fn eq(&self, other: &Story) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Story

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for Story

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,