pub trait Document: Validate + Debug {
const IDENTIFIER: &'static str;
const TITLE: &'static str;
const LABEL: Option<&'static str>;
const SUB_LABEL: Option<&'static str>;
const SINGLETON: bool;
// Required method
fn fields() -> &'static [EditorField];
// Provided method
fn schema() -> Schema { ... }
}Required Associated Constants§
const IDENTIFIER: &'static str
const TITLE: &'static str
const LABEL: Option<&'static str>
const SUB_LABEL: Option<&'static str>
const SINGLETON: bool
Required Methods§
fn fields() -> &'static [EditorField]
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".