pub struct MessageMediaPhoto {
pub spoiler: bool,
pub photo: Option<Photo>,
pub ttl_seconds: Option<i32>,
}Expand description
Generated from:
messageMediaPhoto#695150d7 flags:# spoiler:flags.3?true photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMediaFields§
§spoiler: bool§photo: Option<Photo>§ttl_seconds: Option<i32>Trait Implementations§
Source§impl Clone for MessageMediaPhoto
impl Clone for MessageMediaPhoto
Source§fn clone(&self) -> MessageMediaPhoto
fn clone(&self) -> MessageMediaPhoto
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 MessageMediaPhoto
impl Debug for MessageMediaPhoto
Source§impl Deserializable for MessageMediaPhoto
impl Deserializable for MessageMediaPhoto
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<MessageMediaPhoto> for MessageMedia
impl From<MessageMediaPhoto> for MessageMedia
Source§fn from(x: MessageMediaPhoto) -> Self
fn from(x: MessageMediaPhoto) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageMediaPhoto
impl Identifiable for MessageMediaPhoto
Source§const CONSTRUCTOR_ID: u32 = 0x695150d7
const CONSTRUCTOR_ID: u32 = 0x695150d7
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageMediaPhoto
impl PartialEq for MessageMediaPhoto
Source§impl Serializable for MessageMediaPhoto
impl Serializable for MessageMediaPhoto
Source§impl TryFrom<MessageMedia> for MessageMediaPhoto
impl TryFrom<MessageMedia> for MessageMediaPhoto
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageMediaPhoto
Auto Trait Implementations§
impl Freeze for MessageMediaPhoto
impl RefUnwindSafe for MessageMediaPhoto
impl Send for MessageMediaPhoto
impl Sync for MessageMediaPhoto
impl Unpin for MessageMediaPhoto
impl UnsafeUnpin for MessageMediaPhoto
impl UnwindSafe for MessageMediaPhoto
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