pub trait FieldIdMapper {
// Required methods
fn id(&self, name: &str) -> Option<FieldId>;
fn name(&self, id: FieldId) -> Option<&str>;
}Expand description
Trait for objects that can map the name of a field to its FieldId.
Required Methods§
Sourcefn id(&self, name: &str) -> Option<FieldId>
fn id(&self, name: &str) -> Option<FieldId>
Attempts to map the passed name to its FieldId.
None if the field with this name was not found.