Skip to main content

PrepareDelegatedTokenInput

Struct PrepareDelegatedTokenInput 

Source
pub struct PrepareDelegatedTokenInput<'a> {
    pub proof: &'a DelegationProof,
    pub authority_expires_at_ns: u64,
    pub operation_id: [u8; 32],
    pub prepared_by: Principal,
    pub audience: DelegationAudience,
    pub grants: Vec<DelegatedRoleGrant>,
    pub ttl_ns: u64,
    pub ext: Option<Vec<u8>>,
    pub now_ns: u64,
    pub limits: TokenPreparationLimits,
}
Expand description

Inputs resolved by the host before preparing an issuer-local token.

Fields§

§proof: &'a DelegationProof

Already installed/verified proof belonging to the authorized local issuer. Never resolve this authority from client-submitted proof fields.

§authority_expires_at_ns: u64

Exclusive protected authority deadline, capped by enrolled root policy.

§operation_id: [u8; 32]

Host-retained operation identity. Retry must retain the original inputs, including time, rather than rebuilding a different token for this ID.

§prepared_by: Principal

Authenticated presenter, also used as the subject; not a request assertion.

§audience: DelegationAudience§grants: Vec<DelegatedRoleGrant>§ttl_ns: u64§ext: Option<Vec<u8>>§now_ns: u64§limits: TokenPreparationLimits

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> Same for T

Source§

type Output = T

Should always be Self
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.