pub struct VerifiedCapability {
pub id: String,
pub subject_hex: String,
pub issuer_hex: String,
pub scope: ChioScope,
pub issued_at: u64,
pub expires_at: u64,
pub evaluated_at: u64,
}Expand description
The subset of a verified capability that portable callers actually need.
This deliberately excludes mutable kernel state (budget counters, revocation membership) and avoids returning a reference into the token so adapters that drop the token after verification can still act on the captured scope.
Fields§
§id: StringThe capability ID.
subject_hex: StringThe subject hex-encoded public key.
issuer_hex: StringThe issuer hex-encoded public key.
scope: ChioScopeThe authorized scope.
issued_at: u64issued_at timestamp (Unix seconds).
expires_at: u64expires_at timestamp (Unix seconds).
evaluated_at: u64The clock value used for time-bound enforcement.
Implementations§
Source§impl VerifiedCapability
impl VerifiedCapability
Sourcepub fn normalized(
&self,
) -> Result<NormalizedVerifiedCapability, NormalizationError>
pub fn normalized( &self, ) -> Result<NormalizedVerifiedCapability, NormalizationError>
Project this verification result into the proof-facing normalized AST.
Trait Implementations§
Source§impl Clone for VerifiedCapability
impl Clone for VerifiedCapability
Source§fn clone(&self) -> VerifiedCapability
fn clone(&self) -> VerifiedCapability
Returns a duplicate of the value. Read more
1.0.0 · 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 VerifiedCapability
impl Debug for VerifiedCapability
Source§impl TryFrom<&VerifiedCapability> for NormalizedVerifiedCapability
impl TryFrom<&VerifiedCapability> for NormalizedVerifiedCapability
Source§type Error = NormalizationError
type Error = NormalizationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for VerifiedCapability
impl RefUnwindSafe for VerifiedCapability
impl Send for VerifiedCapability
impl Sync for VerifiedCapability
impl Unpin for VerifiedCapability
impl UnsafeUnpin for VerifiedCapability
impl UnwindSafe for VerifiedCapability
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