pub struct MessageMediaStory {
pub via_mention: bool,
pub peer: Peer,
pub id: i32,
pub story: Option<StoryItem>,
}Expand description
Generated from:
messageMediaStory#68cb6283 flags:# via_mention:flags.1?true peer:Peer id:int story:flags.0?StoryItem = MessageMediaFields§
§via_mention: bool§peer: Peer§id: i32§story: Option<StoryItem>Trait Implementations§
Source§impl Clone for MessageMediaStory
impl Clone for MessageMediaStory
Source§fn clone(&self) -> MessageMediaStory
fn clone(&self) -> MessageMediaStory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageMediaStory
impl Debug for MessageMediaStory
Source§impl Deserializable for MessageMediaStory
impl Deserializable for MessageMediaStory
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 From<MessageMediaStory> for MessageMedia
impl From<MessageMediaStory> for MessageMedia
Source§fn from(x: MessageMediaStory) -> Self
fn from(x: MessageMediaStory) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageMediaStory
impl Identifiable for MessageMediaStory
Source§const CONSTRUCTOR_ID: u32 = 0x68cb6283
const CONSTRUCTOR_ID: u32 = 0x68cb6283
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageMediaStory
impl PartialEq for MessageMediaStory
Source§impl Serializable for MessageMediaStory
impl Serializable for MessageMediaStory
Source§impl TryFrom<MessageMedia> for MessageMediaStory
impl TryFrom<MessageMedia> for MessageMediaStory
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageMediaStory
Auto Trait Implementations§
impl Freeze for MessageMediaStory
impl RefUnwindSafe for MessageMediaStory
impl Send for MessageMediaStory
impl Sync for MessageMediaStory
impl Unpin for MessageMediaStory
impl UnsafeUnpin for MessageMediaStory
impl UnwindSafe for MessageMediaStory
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