Skip to main content

RetainedFacts

Struct RetainedFacts 

Source
pub struct RetainedFacts { /* private fields */ }
Expand description

A conforming token’s declared generation/imprint projection.

This deliberately carries no successful signature/trust verdict. Callers inspect and verify the token independently; only the complete timestamp checker may turn positive checks into evidence. Every retained allocation holds its charge after parser/token drop; no infallible deep Clone exists.

Implementations§

Source§

impl RetainedFacts

Source

pub fn try_copy_in<W: Work>(&self, work: &W) -> Result<Self>

Copies declared facts into independently charged current storage. Moving the owner needs no copy; a genuine deep copy admits new work and capacity before execution. Partial refusal leaves this source unchanged.

Source

pub fn imprint(&self) -> &RetainedImprint

Declared complete imprint, requiring selected-provider resolution to use.

Source

pub fn policy(&self) -> Oid<'_>

Original policy arcs; no product policy acceptance is implied.

Source

pub fn serial(&self) -> &[u8] ⓘ

Original serial INTEGER contents, never a narrowing numeric conversion.

Source

pub fn nonce(&self) -> Option<&[u8]>

Original nonce INTEGER contents when one was written.

Source

pub fn gen_time(&self) -> Reading

Original common UTC reading, not a fabricated exact instant.

Source

pub fn compare_generation<W: Work>( &self, other: &Self, utc: &LeapTable<'_>, work: &W, ) -> Result<Ordering, GenerationOrderError>

Exact generation-time order, retaining arbitrary subnanosecond digits. This compares authenticated facts only when called on actual evidence; a same-TSA ordering assertion or accuracy rule is a separate precondition. Both UTC labels and complete comparison work are admitted before lookup.

Source

pub fn accuracy(&self) -> Option<Accuracy>

Complete Accuracy absence remains distinct from a present zero value.

Source

pub fn ordering(&self) -> bool

Original ordering assertion, which does not establish chronology itself.

Source

pub fn source_span(&self) -> Span

Range in the original callback reader’s coordinates. When logical, keep its supplied SourceMap separately; this is not a physical document span.

Trait Implementations§

Source§

impl Debug for RetainedFacts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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.