pub enum Fields {
Named(Vec<Field>),
Unnamed(Vec<Field>),
None,
}
Variants§
Named(Vec<Field>)
Named struct or variant: struct S { a: u8, b: u8 } enum S { T { a: u8, b: u8 } }
Unnamed(Vec<Field>)
Tuple struct or variant: struct S(u8, u8); enum S { T(u8, u8) }
None
Unit struct or variant:
struct S; enum S { U }
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Fields
impl<'de> Deserialize<'de> for Fields
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IntoIterator for Fields
impl IntoIterator for Fields
impl Eq for Fields
impl StructuralPartialEq for Fields
Auto Trait Implementations§
impl Freeze for Fields
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnwindSafe for Fields
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)