[][src]Enum crev_data::proof::Content

pub enum Content {
    Trust(Trust),
    Package(Box<Package>),
    Code(Box<Code>),
}

Content is an enumerator of possible proof contents

Variants

Trust(Trust)Package(Box<Package>)Code(Box<Code>)

Methods

impl Content[src]

pub fn draft_title(&self) -> String[src]

pub fn validate_data(&self) -> Result<()>[src]

pub fn parse(s: &str, type_: ProofType) -> Result<Content>[src]

pub fn parse_draft(original_proof: &Content, s: &str) -> Result<Content>[src]

pub fn sign_by(&self, id: &OwnId) -> Result<Proof>[src]

pub fn proof_type(&self) -> ProofType[src]

pub fn date(&self) -> &Date[src]

pub fn author_id(&self) -> Id[src]

pub fn set_author(&mut self, id: &PubId)[src]

pub fn set_date(&mut self, date: &Date)[src]

pub fn author_url(&self) -> Url[src]

pub fn to_draft_string(&self) -> String[src]

Trait Implementations

impl From<Code> for Content[src]

impl From<Package> for Content[src]

impl From<Trust> for Content[src]

impl Clone for Content[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Content[src]

impl Display for Content[src]

Auto Trait Implementations

impl Send for Content

impl Unpin for Content

impl Sync for Content

impl UnwindSafe for Content

impl RefUnwindSafe for Content

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self