pub struct Document {
pub file_name: String,
pub mime_type: String,
pub minithumbnail: Option<Minithumbnail>,
pub thumbnail: Option<Thumbnail>,
pub document: File,
}
Expand description
Describes a document of any type
Fields§
§file_name: String
Original name of the file; as defined by the sender
mime_type: String
MIME type of the file; as defined by the sender
minithumbnail: Option<Minithumbnail>
Document minithumbnail; may be null
thumbnail: Option<Thumbnail>
Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null
document: File
File containing the document
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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