Skip to main content

Evidence

Enum Evidence 

Source
pub enum Evidence<'a, A, N, D, G> {
    Basic(&'a Basic<'a, 'a, 'a, 'a, N, D, G>),
    Timestamped(&'a Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>),
    LongTerm(&'a LongTerm<'a, Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>, Checks<'a, 'a, 'a, 'a, 'a, N, D, G>, Report<'a, 'a, 'a, A, N, D, G>>),
    Archival {
        long_term: &'a LongTerm<'a, Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>, Checks<'a, 'a, 'a, 'a, 'a, N, D, G>, Report<'a, 'a, 'a, A, N, D, G>>,
        archives: &'a Archives<'a, Preparation<N, D, G>, ArchiveMaterial<'a, ParticipantMaterial<'a, 'a, 'a, 'a, 'a, N, D, G, Placement<N>, Xades>, Report<'a, 'a, 'a, A, N, D, G>>>,
    },
}
Expand description

Stage reports for exactly one requested level. Each later stage already retains its earlier ones, so a level never needs a separately supplied copy.

Variants§

§

Basic(&'a Basic<'a, 'a, 'a, 'a, N, D, G>)

B-B root field/header/key/digest facts.

§

Timestamped(&'a Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>)

B-T whole token census and root signature-time association.

§

LongTerm(&'a LongTerm<'a, Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>, Checks<'a, 'a, 'a, 'a, 'a, N, D, G>, Report<'a, 'a, 'a, A, N, D, G>>)

B-LT whole-signature validation-material facts.

§

Archival

B-LTA: whole material plus the census of every original root archive.

Fields

§long_term: &'a LongTerm<'a, Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>, Checks<'a, 'a, 'a, 'a, 'a, N, D, G>, Report<'a, 'a, 'a, A, N, D, G>>

Whole-signature material, including its time and basic stages.

§archives: &'a Archives<'a, Preparation<N, D, G>, ArchiveMaterial<'a, ParticipantMaterial<'a, 'a, 'a, 'a, 'a, N, D, G, Placement<N>, Xades>, Report<'a, 'a, 'a, A, N, D, G>>>

Material covered by each original archive, in source order.

Implementations§

Source§

impl<'a, N, D, G> Evidence<'a, (), N, D, G>

Source

pub fn basic(report: &'a Basic<'a, 'a, 'a, 'a, N, D, G>) -> Self

B-B evidence.

Source

pub fn timestamped( report: &'a Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>, ) -> Self

B-T evidence.

Source§

impl<A, N: Copy, D: Copy, G: Copy> Evidence<'_, A, N, D, G>

Source

pub fn level(&self) -> Requirements

Structural profile these reports were produced for.

Auto Trait Implementations§

§

impl<'a, A, N, D, G> !RefUnwindSafe for Evidence<'a, A, N, D, G>

§

impl<'a, A, N, D, G> !Send for Evidence<'a, A, N, D, G>

§

impl<'a, A, N, D, G> !Sync for Evidence<'a, A, N, D, G>

§

impl<'a, A, N, D, G> !UnwindSafe for Evidence<'a, A, N, D, G>

§

impl<'a, A, N, D, G> Forget for Evidence<'a, A, N, D, G>

§

impl<'a, A, N, D, G> Freeze for Evidence<'a, A, N, D, G>
where &'a Basic<'a, 'a, 'a, 'a, N, D, G>: Freeze, &'a Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>: Freeze, &'a LongTerm<'a, Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>, Checks<'a, 'a, 'a, 'a, 'a, N, D, G>, Report<'a, 'a, 'a, A, N, D, G>>: Freeze, &'a Archives<'a, Preparation<N, D, G>, ArchiveMaterial<'a, ParticipantMaterial<'a, 'a, 'a, 'a, 'a, N, D, G, Placement<N>, Xades>, Report<'a, 'a, 'a, A, N, D, G>>>: Freeze,

§

impl<'a, A, N, D, G> Unpin for Evidence<'a, A, N, D, G>
where &'a Basic<'a, 'a, 'a, 'a, N, D, G>: Unpin, &'a Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>: Unpin, &'a LongTerm<'a, Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>, Checks<'a, 'a, 'a, 'a, 'a, N, D, G>, Report<'a, 'a, 'a, A, N, D, G>>: Unpin, &'a Archives<'a, Preparation<N, D, G>, ArchiveMaterial<'a, ParticipantMaterial<'a, 'a, 'a, 'a, 'a, N, D, G, Placement<N>, Xades>, Report<'a, 'a, 'a, A, N, D, G>>>: Unpin,

§

impl<'a, A, N, D, G> UnsafeUnpin for Evidence<'a, A, N, D, G>
where &'a Basic<'a, 'a, 'a, 'a, N, D, G>: UnsafeUnpin, &'a Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>: UnsafeUnpin, &'a LongTerm<'a, Timed<'a, 'a, 'a, Basic<'a, 'a, 'a, 'a, N, D, G>, CheckedPathCertificate<'a, 'a, N, D, G>, N, D, G, Xades>, Checks<'a, 'a, 'a, 'a, 'a, N, D, G>, Report<'a, 'a, 'a, A, N, D, G>>: UnsafeUnpin, &'a Archives<'a, Preparation<N, D, G>, ArchiveMaterial<'a, ParticipantMaterial<'a, 'a, 'a, 'a, 'a, N, D, G, Placement<N>, Xades>, Report<'a, 'a, 'a, A, N, D, G>>>: 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.