Skip to main content

Evidence

Enum Evidence 

Source
pub enum Evidence<'a, 'm, 'd, E> {
    Basic(&'a BasicOf<'a, 'm, 'd>),
    Timestamped(&'a TimedOf<'a, 'm, 'd>),
    LongTerm(&'a LongTermOf<'a, 'm, 'd, E>),
    Archival {
        long_term: &'a LongTermOf<'a, 'm, 'd, E>,
        archives: &'a ArchivesOf<'a, 'm, 'd, E>,
    },
}
Expand description

Complete stage set for one explicitly selected profile. Later stages retain their actual earlier reports rather than accepting independently substituted successful booleans. None of these reports decides application trust.

Variants§

§

Basic(&'a BasicOf<'a, 'm, 'd>)

B-B mandatory format and original signer/counter association.

§

Timestamped(&'a TimedOf<'a, 'm, 'd>)

B-T whole original TSA census and full static signature-time bounds.

§

LongTerm(&'a LongTermOf<'a, 'm, 'd, E>)

B-LT all actual X.509 and credential-format incorporation/placement.

§

Archival

B-LTA all original archive inputs, including every earlier actor’s data.

Fields

§long_term: &'a LongTermOf<'a, 'm, 'd, E>

Whole signature, including its time/basic stages.

§archives: &'a ArchivesOf<'a, 'm, 'd, E>

Complete actual root archive census.

Implementations§

Source§

impl<'a, 'm, 'd> Evidence<'a, 'm, 'd, ()>

Source

pub fn basic(report: &'a BasicOf<'a, 'm, 'd>) -> Self

Basic evidence without naming an unrelated credential evidence type.

Source

pub fn timestamped(report: &'a TimedOf<'a, 'm, 'd>) -> Self

Timestamped evidence without naming an unrelated credential type.

Source§

impl<'m, 'd, E> Evidence<'_, 'm, 'd, E>

Source

pub fn level(&self) -> Level

Exact supplied stage level, never inferred from an unsigned OID.

Auto Trait Implementations§

§

impl<'a, 'm, 'd, E> !RefUnwindSafe for Evidence<'a, 'm, 'd, E>

§

impl<'a, 'm, 'd, E> !Send for Evidence<'a, 'm, 'd, E>

§

impl<'a, 'm, 'd, E> !Sync for Evidence<'a, 'm, 'd, E>

§

impl<'a, 'm, 'd, E> !UnwindSafe for Evidence<'a, 'm, 'd, E>

§

impl<'a, 'm, 'd, E> Freeze for Evidence<'a, 'm, 'd, E>
where &'a LongTerm<'a, Timed<'a, 'a, 'd, Basic<'a, 'a, 'm, 'd, 'a>, SignerBinding<'a, 'm, 'd, 'a>, Node, DocumentId<'m, 'd>, (), Cades>, Checks<'a, 'a, 'a, 'a, 'd, 'm>, Report<'a, 'a, 'm, 'd, 'a, E>>: Freeze, &'a Archives<'a, Preparation<'m, 'd>, ArchiveMaterial<'a, ParticipantMaterial<'a, 'a, 'a, 'a, 'd, Node, DocumentId<'m, 'd>, (), Placement, Cades>, Report<'a, 'a, 'm, 'd, 'a, E>>>: Freeze,

§

impl<'a, 'm, 'd, E> Unpin for Evidence<'a, 'm, 'd, E>
where &'a LongTerm<'a, Timed<'a, 'a, 'd, Basic<'a, 'a, 'm, 'd, 'a>, SignerBinding<'a, 'm, 'd, 'a>, Node, DocumentId<'m, 'd>, (), Cades>, Checks<'a, 'a, 'a, 'a, 'd, 'm>, Report<'a, 'a, 'm, 'd, 'a, E>>: Unpin, &'a Archives<'a, Preparation<'m, 'd>, ArchiveMaterial<'a, ParticipantMaterial<'a, 'a, 'a, 'a, 'd, Node, DocumentId<'m, 'd>, (), Placement, Cades>, Report<'a, 'a, 'm, 'd, 'a, E>>>: Unpin,

§

impl<'a, 'm, 'd, E> UnsafeUnpin for Evidence<'a, 'm, 'd, E>
where &'a LongTerm<'a, Timed<'a, 'a, 'd, Basic<'a, 'a, 'm, 'd, 'a>, SignerBinding<'a, 'm, 'd, 'a>, Node, DocumentId<'m, 'd>, (), Cades>, Checks<'a, 'a, 'a, 'a, 'd, 'm>, Report<'a, 'a, 'm, 'd, 'a, E>>: UnsafeUnpin, &'a Archives<'a, Preparation<'m, 'd>, ArchiveMaterial<'a, ParticipantMaterial<'a, 'a, 'a, 'a, 'd, Node, DocumentId<'m, 'd>, (), Placement, Cades>, Report<'a, 'a, 'm, 'd, 'a, E>>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.