Skip to main content

Field

Trait Field 

Source
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§

Source

fn name(&self) -> &str

Get field name

Source

fn field_type(&self) -> &'static str

Get field type

Source

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".

Implementors§