Struct serde_json::value::de::EnumDeserializer
source · struct EnumDeserializer {
variant: String,
value: Option<Value>,
}
Fields§
§variant: String
§value: Option<Value>
Trait Implementations§
source§impl<'de> EnumAccess<'de> for EnumDeserializer
impl<'de> EnumAccess<'de> for EnumDeserializer
§type Variant = VariantDeserializer
type Variant = VariantDeserializer
The
Visitor
that will be used to deserialize the content of the enum
variant.source§fn variant_seed<V>(
self,
seed: V,
) -> Result<(V::Value, VariantDeserializer), Error>where
V: DeserializeSeed<'de>,
fn variant_seed<V>(
self,
seed: V,
) -> Result<(V::Value, VariantDeserializer), Error>where
V: DeserializeSeed<'de>,
variant
is called to identify which variant to deserialize. Read moreAuto Trait Implementations§
impl Freeze for EnumDeserializer
impl RefUnwindSafe for EnumDeserializer
impl Send for EnumDeserializer
impl Sync for EnumDeserializer
impl Unpin for EnumDeserializer
impl UnwindSafe for EnumDeserializer
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