pub trait Field {
// Required methods
fn sql(&mut self, model: &str) -> String;
fn hide(&mut self) -> &mut Self;
fn describe(&mut self, text: &str) -> &mut Self;
fn field(&mut self) -> JsonValue;
// Provided method
fn verify(&mut self, data: JsonValue) -> JsonValue { ... }
}Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.