Struct serde_json::value::de::EnumRefDeserializer
source · struct EnumRefDeserializer<'de> {
variant: &'de str,
value: Option<&'de Value>,
}
Fields§
§variant: &'de str
§value: Option<&'de Value>
Trait Implementations§
source§impl<'de> EnumAccess<'de> for EnumRefDeserializer<'de>
impl<'de> EnumAccess<'de> for EnumRefDeserializer<'de>
§type Variant = VariantRefDeserializer<'de>
type Variant = VariantRefDeserializer<'de>
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, Self::Variant), Error>where
V: DeserializeSeed<'de>,
fn variant_seed<V>(self, seed: V) -> Result<(V::Value, Self::Variant), Error>where
V: DeserializeSeed<'de>,
variant
is called to identify which variant to deserialize. Read moreAuto Trait Implementations§
impl<'de> Freeze for EnumRefDeserializer<'de>
impl<'de> RefUnwindSafe for EnumRefDeserializer<'de>
impl<'de> Send for EnumRefDeserializer<'de>
impl<'de> Sync for EnumRefDeserializer<'de>
impl<'de> Unpin for EnumRefDeserializer<'de>
impl<'de> UnwindSafe for EnumRefDeserializer<'de>
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