pub struct CapabilitySnapshot {
pub capability_id: String,
pub subject_key: String,
pub issuer_key: String,
pub issued_at: u64,
pub expires_at: u64,
pub grants_json: String,
pub delegation_depth: u64,
pub parent_capability_id: Option<String>,
}Expand description
A point-in-time snapshot of a capability token persisted at issuance.
Stored in the capability_lineage table alongside chio_tool_receipts
for efficient JOINs during audit queries.
Fields§
§capability_id: StringThe unique token ID (matches CapabilityToken.id).
subject_key: StringHex-encoded subject public key (agent bound to this capability).
issuer_key: StringHex-encoded issuer public key (Capability Authority or delegating agent).
issued_at: u64Unix timestamp (seconds) when the token was issued.
expires_at: u64Unix timestamp (seconds) when the token expires.
grants_json: StringJSON-serialized ChioScope (grants, resource_grants, prompt_grants).
delegation_depth: u64Depth in the delegation chain. Root capabilities have depth 0.
parent_capability_id: Option<String>Parent capability_id if this was delegated from another token.
Trait Implementations§
Source§impl Clone for CapabilitySnapshot
impl Clone for CapabilitySnapshot
Source§fn clone(&self) -> CapabilitySnapshot
fn clone(&self) -> CapabilitySnapshot
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 CapabilitySnapshot
impl Debug for CapabilitySnapshot
Source§impl<'de> Deserialize<'de> for CapabilitySnapshot
impl<'de> Deserialize<'de> for CapabilitySnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CapabilitySnapshot
impl RefUnwindSafe for CapabilitySnapshot
impl Send for CapabilitySnapshot
impl Sync for CapabilitySnapshot
impl Unpin for CapabilitySnapshot
impl UnsafeUnpin for CapabilitySnapshot
impl UnwindSafe for CapabilitySnapshot
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