Trait serde::de::EnumVisitor [] [src]

pub trait EnumVisitor {
    type Value;
    fn visit<V>(&mut self, visitor: V) -> Result<Self::Value, V::Error> where V: VariantVisitor;
}

EnumVisitor is a visitor that is created by the Deserialize and passed to the Deserializer in order to deserialize enums.

Associated Types

type Value

The value produced by this visitor.

Required Methods

fn visit<V>(&mut self, visitor: V) -> Result<Self::Value, V::Error> where V: VariantVisitor

Visit the specific variant with the VariantVisitor.

Implementors