pub struct MessageExtendedMediaPreview {
pub w: Option<i32>,
pub h: Option<i32>,
pub thumb: Option<PhotoSize>,
pub video_duration: Option<i32>,
}Expand description
Generated from:
messageExtendedMediaPreview#ad628cc8 flags:# w:flags.0?int h:flags.0?int thumb:flags.1?PhotoSize video_duration:flags.2?int = MessageExtendedMediaFields§
§w: Option<i32>§h: Option<i32>§thumb: Option<PhotoSize>§video_duration: Option<i32>Trait Implementations§
Source§impl Clone for MessageExtendedMediaPreview
impl Clone for MessageExtendedMediaPreview
Source§fn clone(&self) -> MessageExtendedMediaPreview
fn clone(&self) -> MessageExtendedMediaPreview
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 MessageExtendedMediaPreview
impl Debug for MessageExtendedMediaPreview
Source§impl Deserializable for MessageExtendedMediaPreview
impl Deserializable for MessageExtendedMediaPreview
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<MessageExtendedMediaPreview> for MessageExtendedMedia
impl From<MessageExtendedMediaPreview> for MessageExtendedMedia
Source§fn from(x: MessageExtendedMediaPreview) -> Self
fn from(x: MessageExtendedMediaPreview) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageExtendedMediaPreview
impl Identifiable for MessageExtendedMediaPreview
Source§const CONSTRUCTOR_ID: u32 = 0xad628cc8
const CONSTRUCTOR_ID: u32 = 0xad628cc8
The constructor ID as specified in the TL schema.
Source§impl TryFrom<MessageExtendedMedia> for MessageExtendedMediaPreview
impl TryFrom<MessageExtendedMedia> for MessageExtendedMediaPreview
Source§type Error = MessageExtendedMedia
type Error = MessageExtendedMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageExtendedMediaPreview
Auto Trait Implementations§
impl Freeze for MessageExtendedMediaPreview
impl RefUnwindSafe for MessageExtendedMediaPreview
impl Send for MessageExtendedMediaPreview
impl Sync for MessageExtendedMediaPreview
impl Unpin for MessageExtendedMediaPreview
impl UnsafeUnpin for MessageExtendedMediaPreview
impl UnwindSafe for MessageExtendedMediaPreview
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