pub trait Field {
// Required methods
fn name(&self) -> &str;
fn field_type(&self) -> &'static str;
fn to_dict(&self) -> Dictionary;
}Expand description
Base field trait
Required Methods§
Sourcefn field_type(&self) -> &'static str
fn field_type(&self) -> &'static str
Get field type
Sourcefn to_dict(&self) -> Dictionary
fn to_dict(&self) -> Dictionary
Convert to dictionary
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".