Trait CredentialsWrapper

Source
pub trait CredentialsWrapper: Clone + Verifiable {
    type Credential: Verifiable + Clone;

    // Required method
    fn credentials(&self) -> &Vec<Self::Credential>;

    // Provided methods
    fn primary_index(&self) -> Option<u8> { ... }
    fn primary(&self) -> Self::Credential { ... }
    fn primary_id(&self) -> String { ... }
}

Required Associated Types§

Required Methods§

Source

fn credentials(&self) -> &Vec<Self::Credential>

Provided Methods§

Source

fn primary_index(&self) -> Option<u8>

Source

fn primary(&self) -> Self::Credential

Source

fn primary_id(&self) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§