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 DelegationProofAlready installed/verified proof belonging to the authorized local issuer. Never resolve this authority from client-submitted proof fields.
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: PrincipalAuthenticated 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: TokenPreparationLimitsAuto Trait Implementations§
impl<'a> Freeze for PrepareDelegatedTokenInput<'a>
impl<'a> RefUnwindSafe for PrepareDelegatedTokenInput<'a>
impl<'a> Send for PrepareDelegatedTokenInput<'a>
impl<'a> Sync for PrepareDelegatedTokenInput<'a>
impl<'a> Unpin for PrepareDelegatedTokenInput<'a>
impl<'a> UnsafeUnpin for PrepareDelegatedTokenInput<'a>
impl<'a> UnwindSafe for PrepareDelegatedTokenInput<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more