pub struct Document {
pub file: FileMeta,
pub thumb: Option<PhotoSize>,
pub file_name: Option<String>,
pub mime_type: Option<Mime>,
}Expand description
This object represents a general file (as opposed to photos, voice messages and audio files).
Fields§
§file: FileMetaMetadata of the document file.
thumb: Option<PhotoSize>A document thumbnail as defined by a sender.
file_name: Option<String>An original filename as defined by a sender.
mime_type: Option<Mime>A MIME type of the file as defined by a sender.
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
source§impl PartialEq<Document> for Document
impl PartialEq<Document> for Document
impl Eq for Document
impl StructuralEq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
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