pub struct FileUpload {
pub filename: String,
pub data: Vec<u8>,
}Expand description
A file to be uploaded to Discord.
Fields§
§filename: StringThe name of the file.
data: Vec<u8>The binary data of the file.
Implementations§
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 moreAuto Trait Implementations§
impl Freeze for FileUpload
impl RefUnwindSafe for FileUpload
impl Send for FileUpload
impl Sync for FileUpload
impl Unpin 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