Skip to main content

ProfileInput

Struct ProfileInput 

Source
pub struct ProfileInput<'view, 'document, 'envelope, 'information> {
    pub token: &'view Token<'document>,
    pub parent: &'view Reader<'envelope>,
    pub envelope: Option<&'view SourceMap>,
    pub ess: &'view SigningAttributes<'envelope>,
    pub info: &'view TokenInfo<'information>,
    pub reader: &'view Reader<'information>,
    pub source: &'view SourceMap,
}
Expand description

Original already decoded fields, scoped to one profile invocation. These are structural facts, not successful mathematics, authority or trust. Outer and carried sources can have different coordinate systems even when they share an execution account. Scans, copies and parameter queries must admit their work through the corresponding reader’s current execution.

An information view cannot escape into an independently retained result or error: its bytes may belong to a temporary joined buffer.

ⓘ
use structured_cms::timestamp::{ProfileInput, TokenInfo};
fn escape<'a>(input: ProfileInput<'_, 'a, 'a, '_>) -> &'a TokenInfo<'a> {
    input.info
}

Fields§

§token: &'view Token<'document>

Same original token being checked, without a second envelope parse.

§parent: &'view Reader<'envelope>

Original CMS/ESS producing reader with current operation funding.

§envelope: Option<&'view SourceMap>

Outer source map for a logically joined envelope. None means the outer reader already uses original coordinates, not an absent original source.

§ess: &'view SigningAttributes<'envelope>

Same original signed ESS attributes used by the subsequent binding.

§info: &'view TokenInfo<'information>

Same original information reading used by the subsequent complete check.

§reader: &'view Reader<'information>

Producing carried-source reader, including original depth and ceilings.

§source: &'view SourceMap

Original projection for coordinates derived from that carried reader.

Auto Trait Implementations§

§

impl<'view, 'document, 'envelope, 'information> !RefUnwindSafe for ProfileInput<'view, 'document, 'envelope, 'information>

§

impl<'view, 'document, 'envelope, 'information> !Send for ProfileInput<'view, 'document, 'envelope, 'information>

§

impl<'view, 'document, 'envelope, 'information> !Sync for ProfileInput<'view, 'document, 'envelope, 'information>

§

impl<'view, 'document, 'envelope, 'information> !UnwindSafe for ProfileInput<'view, 'document, 'envelope, 'information>

§

impl<'view, 'document, 'envelope, 'information> Freeze for ProfileInput<'view, 'document, 'envelope, 'information>

§

impl<'view, 'document, 'envelope, 'information> Unpin for ProfileInput<'view, 'document, 'envelope, 'information>

§

impl<'view, 'document, 'envelope, 'information> UnsafeUnpin for ProfileInput<'view, 'document, 'envelope, 'information>

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.