Presentation

Trait Presentation 

Source
pub trait Presentation: MaybeIdentified {
    type Credential: Credential;
    type Holder: Identified;

    // Provided methods
    fn id(&self) -> Option<&Uri> { ... }
    fn additional_types(&self) -> &[String] { ... }
    fn types(&self) -> PresentationTypes<'_>  { ... }
    fn verifiable_credentials(&self) -> &[Self::Credential] { ... }
    fn holders(&self) -> &[Self::Holder] { ... }
}
Expand description

Verifiable Presentation.

Required Associated Types§

Source

type Credential: Credential

Verifiable credential type.

Source

type Holder: Identified

Holder.

Provided Methods§

Source

fn id(&self) -> Option<&Uri>

Identifier.

Source

fn additional_types(&self) -> &[String]

Types, without the VerifiablePresentation type.

Source

fn types(&self) -> PresentationTypes<'_>

Source

fn verifiable_credentials(&self) -> &[Self::Credential]

Source

fn holders(&self) -> &[Self::Holder]

Implementors§