[][src]Struct caelum_vcdm::verifiable_presentation::VerifiablePresentation

pub struct VerifiablePresentation {
    pub context: Vec<String>,
    pub id: String,
    pub presentation_type: Vec<String>,
    pub verifiable_credential: Vec<VerifiableCredential>,
    pub proofs: Vec<Proof>,
}

Fields

context: Vec<String>id: Stringpresentation_type: Vec<String>verifiable_credential: Vec<VerifiableCredential>proofs: Vec<Proof>

Methods

impl VerifiablePresentation[src]

pub fn new(id: String) -> Self[src]

Web assembly Constructor

VerifiablePresentation's constructor will create an empty VerifiablePresentation object. An empty object is not a valid VerifiablePresentation.

use caelum_vcdm::verifiable_presentation::VerifiablePresentation;
let vp = VerifiablePresentation::new("my_id".to_string());

pub fn to_json(&self) -> JsValue[src]

Trait Implementations

impl Clone for VerifiablePresentation[src]

impl Default for VerifiablePresentation[src]

impl Debug for VerifiablePresentation[src]

impl Serialize for VerifiablePresentation[src]

impl<'de> Deserialize<'de> for VerifiablePresentation[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self