pub enum UploadSource {
Path(PathBuf),
Bytes(Vec<u8>),
}Expand description
Upload source kind.
Variants§
Trait Implementations§
Source§impl Clone for UploadSource
impl Clone for UploadSource
Source§fn clone(&self) -> UploadSource
fn clone(&self) -> UploadSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UploadSource
impl Debug for UploadSource
Source§impl PartialEq for UploadSource
impl PartialEq for UploadSource
Source§fn eq(&self, other: &UploadSource) -> bool
fn eq(&self, other: &UploadSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UploadSource
impl StructuralPartialEq for UploadSource
Auto Trait Implementations§
impl Freeze for UploadSource
impl RefUnwindSafe for UploadSource
impl Send for UploadSource
impl Sync for UploadSource
impl Unpin for UploadSource
impl UnsafeUnpin for UploadSource
impl UnwindSafe for UploadSource
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