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§
Sourcetype Generation: Copy
type Generation: Copy
Exact document generation.
Sourcetype Credentials
type Credentials
The authenticated credential census the report checked.
Required Methods§
Sourcefn scope(&self) -> TimestampScope<Self::Id, Self::Document, Self::Generation>
fn scope(&self) -> TimestampScope<Self::Id, Self::Document, Self::Generation>
Whole-signature or preceding-archive scope of the report.
Sourcefn snapshot(&self) -> Snapshot<Self::Document, Self::Generation>
fn snapshot(&self) -> Snapshot<Self::Document, Self::Generation>
Source generation of the authenticated credential census.
Sourcefn credentials(&self) -> &Self::Credentials
fn credentials(&self) -> &Self::Credentials
Same authenticated credential census, by reference.
Sourcefn all_requirements_met(&self) -> bool
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".