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