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 copy 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<MultipartValue> for MultipartValue
impl PartialEq<MultipartValue> for MultipartValue
source§fn eq(&self, other: &MultipartValue) -> bool
fn eq(&self, other: &MultipartValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MultipartValue> for MultipartValue
impl PartialOrd<MultipartValue> for MultipartValue
source§fn partial_cmp(&self, other: &MultipartValue) -> Option<Ordering>
fn partial_cmp(&self, other: &MultipartValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more