pub struct InputMediaUploadedDocument {
pub nosound_video: bool,
pub force_file: bool,
pub spoiler: bool,
pub file: InputFile,
pub thumb: Option<InputFile>,
pub mime_type: String,
pub attributes: Vec<DocumentAttribute>,
pub stickers: Option<Vec<InputDocument>>,
pub video_cover: Option<InputPhoto>,
pub video_timestamp: Option<i32>,
pub ttl_seconds: Option<i32>,
}Expand description
Generated from:
inputMediaUploadedDocument#37c9330 flags:# nosound_video:flags.3?true force_file:flags.4?true spoiler:flags.5?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> video_cover:flags.6?InputPhoto video_timestamp:flags.7?int ttl_seconds:flags.1?int = InputMediaFields§
§nosound_video: bool§force_file: bool§spoiler: bool§file: InputFile§thumb: Option<InputFile>§mime_type: String§attributes: Vec<DocumentAttribute>§stickers: Option<Vec<InputDocument>>§video_cover: Option<InputPhoto>§video_timestamp: Option<i32>§ttl_seconds: Option<i32>Trait Implementations§
Source§impl Clone for InputMediaUploadedDocument
impl Clone for InputMediaUploadedDocument
Source§fn clone(&self) -> InputMediaUploadedDocument
fn clone(&self) -> InputMediaUploadedDocument
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 InputMediaUploadedDocument
impl Debug for InputMediaUploadedDocument
Source§impl Deserializable for InputMediaUploadedDocument
impl Deserializable for InputMediaUploadedDocument
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<InputMediaUploadedDocument> for InputMedia
impl From<InputMediaUploadedDocument> for InputMedia
Source§fn from(x: InputMediaUploadedDocument) -> Self
fn from(x: InputMediaUploadedDocument) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputMediaUploadedDocument
impl Identifiable for InputMediaUploadedDocument
Source§const CONSTRUCTOR_ID: u32 = 0x037c9330
const CONSTRUCTOR_ID: u32 = 0x037c9330
The constructor ID as specified in the TL schema.
Source§impl TryFrom<InputMedia> for InputMediaUploadedDocument
impl TryFrom<InputMedia> for InputMediaUploadedDocument
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputMediaUploadedDocument
Auto Trait Implementations§
impl Freeze for InputMediaUploadedDocument
impl RefUnwindSafe for InputMediaUploadedDocument
impl Send for InputMediaUploadedDocument
impl Sync for InputMediaUploadedDocument
impl Unpin for InputMediaUploadedDocument
impl UnsafeUnpin for InputMediaUploadedDocument
impl UnwindSafe for InputMediaUploadedDocument
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