Document

Trait Document 

Source
pub trait Document:
    AsRef<str>
    + Send
    + Sync {
    // Required methods
    fn new(document: impl Into<Arc<str>>) -> Result<Self, Error>
       where Self: Sized;
    fn validate(document: impl Into<Arc<str>>) -> bool
       where Self: Sized;
    fn document_name(&self) -> &'static str;
}

Required Methods§

Source

fn new(document: impl Into<Arc<str>>) -> Result<Self, Error>
where Self: Sized,

Source

fn validate(document: impl Into<Arc<str>>) -> bool
where Self: Sized,

Source

fn document_name(&self) -> &'static str

Implementors§