Trait crev_data::proof::content::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§