pub trait FieldNameVisitor<'de> {
    type Output;

    // Required methods
    fn field_names(&self, names: &mut dyn ValidNames);
    fn visit<E: Error>(self, name: &str) -> Result<Self::Output, E>;

    // Provided method
    fn kind(&self) -> ProductKind { ... }
}
Expand description

Visitor used to deserialize the name of a field.

Required Associated Types§

source

type Output

The resulting field name.

Required Methods§

source

fn field_names(&self, names: &mut dyn ValidNames)

Provides the visitor the chance to add valid names into names.

source

fn visit<E: Error>(self, name: &str) -> Result<Self::Output, E>

Provided Methods§

source

fn kind(&self) -> ProductKind

The sort of product deserialized.

Object Safety§

This trait is not object safe.

Implementors§