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
sourceimpl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
sourcefn 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 RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more