pub struct MediaFile {
pub file_id: String,
pub file_unique_id: String,
pub mime_type: Option<String>,
pub file_name: Option<String>,
}Expand description
A file attached to a message (video, audio, voice note, document, …).
Fields§
§file_id: StringIdentifier usable to re-send or fetch the file.
file_unique_id: StringPersistent identifier invariant across bots and re-uploads.
mime_type: Option<String>MIME type reported by the sender.
file_name: Option<String>Original file name (documents only).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaFile
impl<'de> Deserialize<'de> for MediaFile
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
Auto Trait Implementations§
impl Freeze for MediaFile
impl RefUnwindSafe for MediaFile
impl Send for MediaFile
impl Sync for MediaFile
impl Unpin for MediaFile
impl UnsafeUnpin for MediaFile
impl UnwindSafe for MediaFile
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