pub struct Upload {
pub filename: String,
pub content: Arc<[u8]>,
pub content_type: String,
}Expand description
A file for an upload endpoint.
The content is shared: cloning an Upload or retrying the request does
not copy it.
Fields§
§filename: String§content: Arc<[u8]>§content_type: StringMIME type, e.g. application/pdf.
Implementations§
Trait Implementations§
impl Eq for Upload
impl StructuralPartialEq for Upload
Auto Trait Implementations§
impl Freeze for Upload
impl RefUnwindSafe for Upload
impl Send for Upload
impl Sync for Upload
impl Unpin for Upload
impl UnsafeUnpin for Upload
impl UnwindSafe for Upload
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