Skip to main content

CheckedTimestamp

Struct CheckedTimestamp 

Source
pub struct CheckedTimestamp<'a> {
    pub signature: TokenSignature<'a>,
    pub identifier: CertificateAgreement,
    pub ess: SigningAttributes<'a>,
    pub bindings: Bindings,
    pub authority: AuthorityFacts,
    pub imprint: ImprintAgreement,
    pub requested_imprint: Option<RequestAgreement>,
    pub requested_fields: Option<RequestFields>,
    pub carried: Option<bool>,
    pub timeliness: Timeliness,
    pub accuracy_error: Option<DeviationError>,
    pub unknown_critical: OwnedVec<OwnedOid>,
    /* private fields */
}
Expand description

Common check facts including original ESS validation-set restrictions.

Fields§

§signature: TokenSignature<'a>

Actual CMS signature/content or explicit unusable preparation answer.

§identifier: CertificateAgreement

Selected-certificate hint agreement, not pool uniqueness/trust.

§ess: SigningAttributes<'a>

Original independent V1/V2 identifiers and signed path restrictions.

§bindings: Bindings

Independent selected-certificate binding answers.

§authority: AuthorityFacts

Required TSA purpose and optional name agreement.

§imprint: ImprintAgreement

Complete caller-covered-content agreement.

§requested_imprint: Option<RequestAgreement>

Complete live request-imprint equality, when supplied.

§requested_fields: Option<RequestFields>

Independent requested nonce/policy agreement.

§carried: Option<bool>

Certificate carriage requirement, when requested.

§timeliness: Timeliness

Explicit freshness answer, without an implicitly read clock.

§accuracy_error: Option<DeviationError>

Readable Accuracy scalar refusal, without clamping/narrowing.

§unknown_critical: OwnedVec<OwnedOid>

Unknown critical identifiers with independently retained charges.

Implementations§

Source§

impl CheckedTimestamp<'_>

Source

pub fn take_evidence(&mut self) -> Option<Evidence>

Moves independently retained evidence out while keeping every original negative/check fact available to a scoped format adapter. No copy or second signature/content pass occurs, and mutable public facts still cannot manufacture evidence.

Source

pub fn into_evidence(self) -> Option<Evidence>

Moves retained evidence without deep copy or another storage charge.

Source

pub fn evidence(&self) -> Option<&Evidence>

Only the checker constructs evidence; editing public facts cannot do so.

Auto Trait Implementations§

§

impl<'a> !Freeze for CheckedTimestamp<'a>

§

impl<'a> !RefUnwindSafe for CheckedTimestamp<'a>

§

impl<'a> !Send for CheckedTimestamp<'a>

§

impl<'a> !Sync for CheckedTimestamp<'a>

§

impl<'a> !UnwindSafe for CheckedTimestamp<'a>

§

impl<'a> Unpin for CheckedTimestamp<'a>

§

impl<'a> UnsafeUnpin for CheckedTimestamp<'a>

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.