pub struct CommitToken { /* private fields */ }Implementations§
Source§impl CommitToken
impl CommitToken
Sourcepub fn execution_permit_id(&self) -> &ExecutionPermitId
pub fn execution_permit_id(&self) -> &ExecutionPermitId
Runtime-only commit tokens cannot be forged outside this crate.
ⓘ
use stack_ids::{ExecutionPermitId, PolicyDecisionId};
use verification_policy::CommitToken;
let _forged = CommitToken {
execution_permit_id: ExecutionPermitId::new("permit-1"),
decision_id: PolicyDecisionId::new("decision-1"),
};Returns the permit identifier bound to this runtime token.
Sourcepub fn decision_id(&self) -> &PolicyDecisionId
pub fn decision_id(&self) -> &PolicyDecisionId
Returns the policy decision that minted this runtime token.
Trait Implementations§
Source§impl Clone for CommitToken
impl Clone for CommitToken
Source§fn clone(&self) -> CommitToken
fn clone(&self) -> CommitToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommitToken
impl Debug for CommitToken
impl Eq for CommitToken
Source§impl PartialEq for CommitToken
impl PartialEq for CommitToken
Source§fn eq(&self, other: &CommitToken) -> bool
fn eq(&self, other: &CommitToken) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommitToken
Auto Trait Implementations§
impl Freeze for CommitToken
impl RefUnwindSafe for CommitToken
impl Send for CommitToken
impl Sync for CommitToken
impl Unpin for CommitToken
impl UnsafeUnpin for CommitToken
impl UnwindSafe for CommitToken
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