Trait spacetimedb_sats::de::FieldNameVisitor
source · 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§
Required Methods§
sourcefn field_names(&self, names: &mut dyn ValidNames)
fn field_names(&self, names: &mut dyn ValidNames)
Provides the visitor the chance to add valid names into names
.
fn visit<E: Error>(self, name: &str) -> Result<Self::Output, E>
Provided Methods§
sourcefn kind(&self) -> ProductKind
fn kind(&self) -> ProductKind
The sort of product deserialized.
Object Safety§
This trait is not object safe.