Skip to main content

ContentWithDraft

Trait ContentWithDraft 

Source
pub trait ContentWithDraft: Content {
    // Required methods
    fn to_draft(&self) -> Draft;
    fn apply_draft(&self, body: &str) -> Result<Self, Error>
       where Self: Sized;
}
Expand description

A content with draft support

Draft is a compact, human

Required Methods§

Source

fn to_draft(&self) -> Draft

Source

fn apply_draft(&self, body: &str) -> Result<Self, Error>
where Self: Sized,

Implementors§