[][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>>,


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>>


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(
    keys: &JWTKeys,
    aud: &str
) -> Result<String, Error>

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>

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

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

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>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,