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