pub struct InputSingleMedia {
pub media: InputMedia,
pub random_id: i64,
pub message: String,
pub entities: Option<Vec<MessageEntity>>,
}Expand description
Generated from:
inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector<MessageEntity> = InputSingleMediaFields§
§media: InputMedia§random_id: i64§message: String§entities: Option<Vec<MessageEntity>>Trait Implementations§
Source§impl Clone for InputSingleMedia
impl Clone for InputSingleMedia
Source§fn clone(&self) -> InputSingleMedia
fn clone(&self) -> InputSingleMedia
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 InputSingleMedia
impl Debug for InputSingleMedia
Source§impl Deserializable for InputSingleMedia
impl Deserializable for InputSingleMedia
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<InputSingleMedia> for InputSingleMedia
impl From<InputSingleMedia> for InputSingleMedia
Source§fn from(x: InputSingleMedia) -> Self
fn from(x: InputSingleMedia) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputSingleMedia
impl Identifiable for InputSingleMedia
Source§const CONSTRUCTOR_ID: u32 = 0x1cc6e91f
const CONSTRUCTOR_ID: u32 = 0x1cc6e91f
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputSingleMedia
impl PartialEq for InputSingleMedia
Source§impl Serializable for InputSingleMedia
impl Serializable for InputSingleMedia
Source§impl TryFrom<InputSingleMedia> for InputSingleMedia
impl TryFrom<InputSingleMedia> for InputSingleMedia
Source§type Error = InputSingleMedia
type Error = InputSingleMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputSingleMedia
Auto Trait Implementations§
impl Freeze for InputSingleMedia
impl RefUnwindSafe for InputSingleMedia
impl Send for InputSingleMedia
impl Sync for InputSingleMedia
impl Unpin for InputSingleMedia
impl UnsafeUnpin for InputSingleMedia
impl UnwindSafe for InputSingleMedia
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