pub struct StoryItem {Show 22 fields
pub pinned: bool,
pub public: bool,
pub close_friends: bool,
pub min: bool,
pub noforwards: bool,
pub edited: bool,
pub contacts: bool,
pub selected_contacts: bool,
pub out: bool,
pub id: i32,
pub date: i32,
pub from_id: Option<Peer>,
pub fwd_from: Option<StoryFwdHeader>,
pub expire_date: i32,
pub caption: Option<String>,
pub entities: Option<Vec<MessageEntity>>,
pub media: MessageMedia,
pub media_areas: Option<Vec<MediaArea>>,
pub privacy: Option<Vec<PrivacyRule>>,
pub views: Option<StoryViews>,
pub sent_reaction: Option<Reaction>,
pub albums: Option<Vec<i32>>,
}Expand description
Generated from:
storyItem#edf164f1 flags:# pinned:flags.5?true public:flags.7?true close_friends:flags.8?true min:flags.9?true noforwards:flags.10?true edited:flags.11?true contacts:flags.12?true selected_contacts:flags.13?true out:flags.16?true id:int date:int from_id:flags.18?Peer fwd_from:flags.17?StoryFwdHeader expire_date:int caption:flags.0?string entities:flags.1?Vector<MessageEntity> media:MessageMedia media_areas:flags.14?Vector<MediaArea> privacy:flags.2?Vector<PrivacyRule> views:flags.3?StoryViews sent_reaction:flags.15?Reaction albums:flags.19?Vector<int> = StoryItemFields§
§pinned: bool§public: bool§close_friends: bool§min: bool§noforwards: bool§edited: bool§contacts: bool§selected_contacts: bool§out: bool§id: i32§date: i32§from_id: Option<Peer>§fwd_from: Option<StoryFwdHeader>§expire_date: i32§caption: Option<String>§entities: Option<Vec<MessageEntity>>§media: MessageMedia§media_areas: Option<Vec<MediaArea>>§privacy: Option<Vec<PrivacyRule>>§views: Option<StoryViews>§sent_reaction: Option<Reaction>§albums: Option<Vec<i32>>Trait Implementations§
Source§impl Deserializable for StoryItem
impl Deserializable for StoryItem
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl Identifiable for StoryItem
impl Identifiable for StoryItem
Source§const CONSTRUCTOR_ID: u32 = 0xedf164f1
const CONSTRUCTOR_ID: u32 = 0xedf164f1
The constructor ID as specified in the TL schema.
Source§impl Serializable for StoryItem
impl Serializable for StoryItem
impl StructuralPartialEq for StoryItem
Auto Trait Implementations§
impl Freeze for StoryItem
impl RefUnwindSafe for StoryItem
impl Send for StoryItem
impl Sync for StoryItem
impl Unpin for StoryItem
impl UnsafeUnpin for StoryItem
impl UnwindSafe for StoryItem
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