pub struct InputMessageDocument {
pub document: InputFile,
pub thumbnail: Option<InputThumbnail>,
pub disable_content_type_detection: bool,
pub caption: Option<FormattedText>,
}
Expand description
A document message (general file)
Fields§
§document: InputFile
Document to be sent
thumbnail: Option<InputThumbnail>
Document thumbnail; pass null to skip thumbnail uploading
disable_content_type_detection: bool
Pass true to disable automatic file type detection and send the document as a file. Always true for files sent to secret chats
caption: Option<FormattedText>
Document caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters
Trait Implementations§
Source§impl Clone for InputMessageDocument
impl Clone for InputMessageDocument
Source§fn clone(&self) -> InputMessageDocument
fn clone(&self) -> InputMessageDocument
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 InputMessageDocument
impl Debug for InputMessageDocument
Source§impl<'de> Deserialize<'de> for InputMessageDocument
impl<'de> Deserialize<'de> for InputMessageDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputMessageDocument
impl PartialEq for InputMessageDocument
Source§impl Serialize for InputMessageDocument
impl Serialize for InputMessageDocument
impl StructuralPartialEq for InputMessageDocument
Auto Trait Implementations§
impl Freeze for InputMessageDocument
impl RefUnwindSafe for InputMessageDocument
impl Send for InputMessageDocument
impl Sync for InputMessageDocument
impl Unpin for InputMessageDocument
impl UnwindSafe for InputMessageDocument
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