[][src]Struct didkit::VerifiablePresentation

pub struct VerifiablePresentation {
    pub context: Contexts,
    pub id: Option<URI>,
    pub type_: OneOrMany<String>,
    pub verifiable_credential: Option<OneOrMany<CredentialOrJWT>>,
    pub proof: Option<OneOrMany<Proof>>,
    pub holder: Option<URI>,
    pub property_set: Option<HashMap<String, Value, RandomState>>,
}

Fields

context: Contextsid: Option<URI>type_: OneOrMany<String>verifiable_credential: Option<OneOrMany<CredentialOrJWT>>proof: Option<OneOrMany<Proof>>holder: Option<URI>property_set: Option<HashMap<String, Value, RandomState>>

Implementations

impl Presentation[src]

pub fn from_json(s: &str) -> Result<Presentation, Error>[src]

pub fn from_json_unsigned(s: &str) -> Result<Presentation, Error>[src]

pub fn encode_sign_jwt(
    &self,
    keys: &JWTKeys,
    aud: &str
) -> Result<String, Error>
[src]

pub fn validate_unsigned(&self) -> Result<(), Error>[src]

pub fn validate(&self) -> Result<(), Error>[src]

pub async fn generate_proof(
    &'_ self,
    jwk: &'_ JWK,
    options: &'_ LinkedDataProofOptions
) -> Result<Proof, Error>
[src]

pub fn add_proof(&mut self, proof: Proof)[src]

pub async fn verify(
    &'_ self,
    options: Option<LinkedDataProofOptions>,
    resolver: &'_ (dyn DIDResolver + '_)
) -> VerificationResult
[src]

Trait Implementations

impl Clone for Presentation[src]

impl Debug for Presentation[src]

impl Default for Presentation[src]

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

impl LinkedDataDocument for Presentation[src]

impl Serialize for Presentation[src]

Auto Trait Implementations

impl RefUnwindSafe for Presentation[src]

impl Send for Presentation[src]

impl Sync for Presentation[src]

impl Unpin for Presentation[src]

impl UnwindSafe for Presentation[src]

Blanket Implementations

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

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

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

impl<'a, T> Desc<'a, T> for T

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

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToOwned for T

type Owned = T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,