Trait Document

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

Source

fn identifier() -> &'static str

Source

fn title() -> &'static str

Source

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.

Implementors§