Skip to main content

ReferenceInput

Struct ReferenceInput 

Source
pub struct ReferenceInput<'input, 'model, 'document> { /* private fields */ }
Expand description

Closed original recipe: only range descriptors are retained, never payload copies or a caller-selected replacement digest. No detached input is used.

Implementations§

Source§

impl<'s, 'm, 'd> ReferenceInput<'s, 'm, 'd>

Source

pub fn new( prepared: &'s Preparation<'m, 'd>, ordinal: usize, operation: &'s Reader<'d>, ) -> Result<Self, SelectionError>

Selects the actual unsigned owner and the exact registered token value. Current EN rules require both references Attributes, and additionally signature timestamps for .25. No genTime/order chronology is inferred.

Trait Implementations§

Source§

impl<P, PE> ComputedInput<P, PE> for ReferenceInput<'_, '_, '_>

Source§

type Error = !

Original source or recipe failure, independent of semantic disagreement.
Source§

fn compute<'context, 'reader, 'document>( &mut self, context: &'context ImprintContext<'reader, 'document, P, Self::Error>, ) -> Result<ImprintProof<'context>, InputFailure<Self::Error>>
where P: AsnDigest<'document, Error = PE>,

Complete the input, preserving refusal even when a callback ignores it.

Auto Trait Implementations§

§

impl<'input, 'model, 'document> !Freeze for ReferenceInput<'input, 'model, 'document>

§

impl<'input, 'model, 'document> !RefUnwindSafe for ReferenceInput<'input, 'model, 'document>

§

impl<'input, 'model, 'document> !Send for ReferenceInput<'input, 'model, 'document>

§

impl<'input, 'model, 'document> !Sync for ReferenceInput<'input, 'model, 'document>

§

impl<'input, 'model, 'document> !UnwindSafe for ReferenceInput<'input, 'model, 'document>

§

impl<'input, 'model, 'document> Forget for ReferenceInput<'input, 'model, 'document>

§

impl<'input, 'model, 'document> Unpin for ReferenceInput<'input, 'model, 'document>

§

impl<'input, 'model, 'document> UnsafeUnpin for ReferenceInput<'input, 'model, 'document>

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.