struct MapValueVariantAccess<'de, 'd, 'm, R, E>where
R: XmlRead<'de>,
E: EntityResolver,{
map: &'m mut ElementMapAccess<'de, 'd, R, E>,
is_text: bool,
}
Fields§
§map: &'m mut ElementMapAccess<'de, 'd, R, E>
Access to the map that created this enum accessor. Gives access to the context, such as list of fields, that current map known about.
is_text: bool
true
if variant should be deserialized from a textual content
and false
if from tag
Trait Implementations§
Source§impl<'de, 'd, 'm, R, E> VariantAccess<'de> for MapValueVariantAccess<'de, 'd, 'm, R, E>where
R: XmlRead<'de>,
E: EntityResolver,
impl<'de, 'd, 'm, R, E> VariantAccess<'de> for MapValueVariantAccess<'de, 'd, 'm, R, E>where
R: XmlRead<'de>,
E: EntityResolver,
Source§type Error = DeError
type Error = DeError
The error type that can be returned if some error occurs during
deserialization. Must match the error type of our
EnumAccess
.Source§fn unit_variant(self) -> Result<(), Self::Error>
fn unit_variant(self) -> Result<(), Self::Error>
Called when deserializing a variant with no values. Read more
Source§fn newtype_variant_seed<T>(self, seed: T) -> Result<T::Value, Self::Error>where
T: DeserializeSeed<'de>,
fn newtype_variant_seed<T>(self, seed: T) -> Result<T::Value, Self::Error>where
T: DeserializeSeed<'de>,
Called when deserializing a variant with a single value. Read more
Source§fn tuple_variant<V>(
self,
len: usize,
visitor: V,
) -> Result<V::Value, Self::Error>where
V: Visitor<'de>,
fn tuple_variant<V>(
self,
len: usize,
visitor: V,
) -> Result<V::Value, Self::Error>where
V: Visitor<'de>,
Called when deserializing a tuple-like variant. Read more
Source§fn struct_variant<V>(
self,
fields: &'static [&'static str],
visitor: V,
) -> Result<V::Value, Self::Error>where
V: Visitor<'de>,
fn struct_variant<V>(
self,
fields: &'static [&'static str],
visitor: V,
) -> Result<V::Value, Self::Error>where
V: Visitor<'de>,
Called when deserializing a struct-like variant. Read more
Source§fn newtype_variant<T>(self) -> Result<T, Self::Error>where
T: Deserialize<'de>,
fn newtype_variant<T>(self) -> Result<T, Self::Error>where
T: Deserialize<'de>,
Called when deserializing a variant with a single value. Read more
Auto Trait Implementations§
impl<'de, 'd, 'm, R, E> Freeze for MapValueVariantAccess<'de, 'd, 'm, R, E>
impl<'de, 'd, 'm, R, E> !RefUnwindSafe for MapValueVariantAccess<'de, 'd, 'm, R, E>
impl<'de, 'd, 'm, R, E> Send for MapValueVariantAccess<'de, 'd, 'm, R, E>
impl<'de, 'd, 'm, R, E> Sync for MapValueVariantAccess<'de, 'd, 'm, R, E>
impl<'de, 'd, 'm, R, E> Unpin for MapValueVariantAccess<'de, 'd, 'm, R, E>
impl<'de, 'd, 'm, R, E> !UnwindSafe for MapValueVariantAccess<'de, 'd, 'm, R, E>
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