Skip to main content

Document

Trait Document 

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

Source

const IDENTIFIER: &'static str

Source

const TITLE: &'static str

Source

const LABEL: Option<&'static str>

Source

const SUB_LABEL: Option<&'static str>

Source

const SINGLETON: bool

Required Methods§

Source

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

Implementors§