Presentation

Trait Presentation 

Source
pub trait Presentation {
    type Credential: Credential;

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

Presentation trait.

Required Associated Types§

Source

type Credential: Credential

Verifiable credential type.

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 holder(&self) -> Option<&Uri>

Implementors§