pub struct FileUpload {
pub filename: String,
pub mime_type: Option<String>,
pub data: Bytes,
}Expand description
A file upload to be sent along with a message.
Fields§
§filename: StringThe filename to present to the recipient.
mime_type: Option<String>MIME type of the file.
data: BytesRaw file bytes.
Trait Implementations§
Source§impl Clone for FileUpload
impl Clone for FileUpload
Source§fn clone(&self) -> FileUpload
fn clone(&self) -> FileUpload
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 FileUpload
impl Debug for FileUpload
Source§impl<'de> Deserialize<'de> for FileUpload
impl<'de> Deserialize<'de> for FileUpload
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 FileUpload
impl RefUnwindSafe for FileUpload
impl Send for FileUpload
impl Sync for FileUpload
impl Unpin for FileUpload
impl UnsafeUnpin for FileUpload
impl UnwindSafe for FileUpload
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