[][src]Struct dubp_documents::documents::revocation::RevocationDocumentBuilder

pub struct RevocationDocumentBuilder<'a> {
    pub currency: &'a str,
    pub issuer: &'a PubKey,
    pub identity_username: &'a str,
    pub identity_blockstamp: &'a Blockstamp,
    pub identity_sig: &'a Sig,
}

Revocation document builder.

Fields

currency: &'a str

Document currency.

issuer: &'a PubKey

Revocation issuer.

identity_username: &'a str

Username of target Identity.

identity_blockstamp: &'a Blockstamp

Blockstamp of target Identity.

identity_sig: &'a Sig

Signature of target Identity.

Trait Implementations

impl<'a> TextDocumentBuilder for RevocationDocumentBuilder<'a>[src]

fn build_signed_text(&self, private_keys: Vec<PrivKey>) -> (String, Vec<Sig>)[src]

Generate final document with signatures, and also return them in an array. Read more

impl<'a> DocumentBuilder for RevocationDocumentBuilder<'a>[src]

type Document = RevocationDocument

Type of the builded document.

type PrivateKey = PrivKey

Type of the private keys signing the documents.

impl<'a> Clone for RevocationDocumentBuilder<'a>[src]

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

Performs copy-assignment from source. Read more

impl<'a> Copy for RevocationDocumentBuilder<'a>[src]

impl<'a> Debug for RevocationDocumentBuilder<'a>[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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