[−][src]Enum crev_data::proof::Content
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(&self) -> 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]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self