pub enum UploadSourceKind {
Path,
Reader,
Bytes,
}Expand description
Shared classification of upload input sources.
Variants§
Path
Upload bytes come from a local file path.
Reader
Upload bytes come from a reader or stream-like source.
Bytes
Upload bytes are already materialized in memory.
Trait Implementations§
Source§impl Clone for UploadSourceKind
impl Clone for UploadSourceKind
Source§fn clone(&self) -> UploadSourceKind
fn clone(&self) -> UploadSourceKind
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 UploadSourceKind
impl Debug for UploadSourceKind
Source§impl Hash for UploadSourceKind
impl Hash for UploadSourceKind
Source§impl PartialEq for UploadSourceKind
impl PartialEq for UploadSourceKind
impl Copy for UploadSourceKind
impl Eq for UploadSourceKind
impl StructuralPartialEq for UploadSourceKind
Auto Trait Implementations§
impl Freeze for UploadSourceKind
impl RefUnwindSafe for UploadSourceKind
impl Send for UploadSourceKind
impl Sync for UploadSourceKind
impl Unpin for UploadSourceKind
impl UnsafeUnpin for UploadSourceKind
impl UnwindSafe for UploadSourceKind
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