pub trait Document: Validate {
// Required methods
fn identifier() -> &'static str;
fn title() -> &'static str;
fn fields() -> Vec<EditorField>;
// Provided method
fn schema() -> Schema { ... }
}
Required Methods§
fn identifier() -> &'static str
fn title() -> &'static str
fn fields() -> Vec<EditorField>
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.