Enum serde_content::Data
source · pub enum Data<'a> {
Unit,
NewType {
value: Value<'a>,
},
Tuple {
values: Vec<Value<'a>>,
},
Struct {
fields: Vec<(Cow<'static, str>, Value<'a>)>,
},
}
Expand description
Represents struct and enum data.
Variants§
Unit
Represents unit structs and unit enum variants.
NewType
Represents newtype structs and enum variants.
Tuple
Represents tuple structs and enum variants.
Struct
Represents object-like structs and enum variants.
Implementations§
Trait Implementations§
source§impl<'a> PartialOrd for Data<'a>
impl<'a> PartialOrd for Data<'a>
impl<'a> StructuralPartialEq for Data<'a>
Auto Trait Implementations§
impl<'a> Freeze for Data<'a>
impl<'a> RefUnwindSafe for Data<'a>
impl<'a> Send for Data<'a>
impl<'a> Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> UnwindSafe for Data<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)