Skip to main content

CredentialMaterial

Trait CredentialMaterial 

Source
pub trait CredentialMaterial {
    type Id: Copy;
    type Document: Copy;
    type Generation: Copy;
    type Credentials;

    // Required methods
    fn scope(
        &self,
    ) -> TimestampScope<Self::Id, Self::Document, Self::Generation>;
    fn snapshot(&self) -> Snapshot<Self::Document, Self::Generation>;
    fn credentials(&self) -> &Self::Credentials;
    fn all_requirements_met(&self) -> bool;
}
Expand description

A format’s credential-material report for one validation-data scope.

Required Associated Types§

Source

type Id: Copy

Original node identity.

Source

type Document: Copy

Stable document identity.

Source

type Generation: Copy

Exact document generation.

Source

type Credentials

The authenticated credential census the report checked.

Required Methods§

Source

fn scope(&self) -> TimestampScope<Self::Id, Self::Document, Self::Generation>

Whole-signature or preceding-archive scope of the report.

Source

fn snapshot(&self) -> Snapshot<Self::Document, Self::Generation>

Source generation of the authenticated credential census.

Source

fn credentials(&self) -> &Self::Credentials

Same authenticated credential census, by reference.

Source

fn all_requirements_met(&self) -> bool

Every credential’s own format material is present and interpreted.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§