Enum VisitMap

pub enum VisitMap<'de>

Integrate [Datetime][crate::Datetime] into an untagged deserialize

Variants

Datetime(Datetime)

The map was deserialized as a [Datetime][crate::Datetime] value

Key(Cow<'de, str>)

The map is of an unknown format and needs further deserialization

Implementations

impl<'de> VisitMap<'de>

fn next_key_seed<V: MapAccess<'de>>(visitor: &mut V) -> Result<Option<Self>, V::Error>

Determine the type of the map by deserializing it

Auto Trait Implementations

impl<'de> Freeze for VisitMap<'de>

impl<'de> RefUnwindSafe for VisitMap<'de>

impl<'de> Send for VisitMap<'de>

impl<'de> Sync for VisitMap<'de>

impl<'de> Unpin for VisitMap<'de>

impl<'de> UnsafeUnpin for VisitMap<'de>

impl<'de> UnwindSafe for VisitMap<'de>

Blanket Implementations

impl<T> Any for VisitMap<'de> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for VisitMap<'de> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for VisitMap<'de> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for VisitMap<'de>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for VisitMap<'de> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for VisitMap<'de> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for VisitMap<'de> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>