pub struct DelegationCert {
pub cert_id: String,
pub version: i32,
pub issuer_id: String,
pub issuer_pub_key: HybridPublicKey,
pub subject_id: String,
pub subject_pub_key: HybridPublicKey,
pub scope: Vec<String>,
pub constraints: Vec<Constraint>,
pub issued_at: i64,
pub expires_at: i64,
pub signature: HybridSignature,
}Expand description
Signed authorization from a principal to an agent.
scope answers what the agent may do. constraints answer where /
when / how much — first-class bounds evaluated at verify time against a
caller-supplied VerifierContext.
Fields§
§cert_id: String§version: i32§issuer_id: String§issuer_pub_key: HybridPublicKey§subject_id: String§subject_pub_key: HybridPublicKey§scope: Vec<String>§constraints: Vec<Constraint>Always present in canonical JSON ([] when empty) so canonical bytes
are deterministic across issuers.
issued_at: i64§expires_at: i64§signature: HybridSignatureTrait Implementations§
Source§impl Clone for DelegationCert
impl Clone for DelegationCert
Source§fn clone(&self) -> DelegationCert
fn clone(&self) -> DelegationCert
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 DelegationCert
impl Debug for DelegationCert
Source§impl<'de> Deserialize<'de> for DelegationCert
impl<'de> Deserialize<'de> for DelegationCert
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 DelegationCert
impl RefUnwindSafe for DelegationCert
impl Send for DelegationCert
impl Sync for DelegationCert
impl Unpin for DelegationCert
impl UnsafeUnpin for DelegationCert
impl UnwindSafe for DelegationCert
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