pub enum MultipartValue {
Text(Text),
Path {
path: Text,
file_name: Option<Text>,
},
Data {
file_name: Text,
data: Bytes,
},
}
Variants§
Trait Implementations§
Source§impl Clone for MultipartValue
impl Clone for MultipartValue
Source§fn clone(&self) -> MultipartValue
fn clone(&self) -> MultipartValue
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 MultipartValue
impl Debug for MultipartValue
Source§impl Hash for MultipartValue
impl Hash for MultipartValue
Source§impl Ord for MultipartValue
impl Ord for MultipartValue
Source§fn cmp(&self, other: &MultipartValue) -> Ordering
fn cmp(&self, other: &MultipartValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MultipartValue
impl PartialEq for MultipartValue
Source§impl PartialOrd for MultipartValue
impl PartialOrd for MultipartValue
impl Eq for MultipartValue
impl StructuralPartialEq for MultipartValue
Auto Trait Implementations§
impl !Freeze for MultipartValue
impl RefUnwindSafe for MultipartValue
impl Send for MultipartValue
impl Sync for MultipartValue
impl Unpin for MultipartValue
impl UnwindSafe for MultipartValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.