pub struct DelegationToken {
pub claims: DelegationClaims,
pub delegator_signature: String,
pub binding_signature: String,
pub delegation_public_key: String,
}Expand description
A delegation token with dual signatures.
Fields§
§claims: DelegationClaims§delegator_signature: StringHex-encoded Ed25519 signature by the delegating human’s key.
binding_signature: StringHex-encoded Ed25519 signature by the stable delegation key.
delegation_public_key: StringHex-encoded public key of the delegation keypair. Redundant with the
value recorded in project.yaml under ai_delegations; kept as an
aid for debugging and for error messages pointing at a mismatch.
Trait Implementations§
Source§impl Debug for DelegationToken
impl Debug for DelegationToken
Source§impl<'de> Deserialize<'de> for DelegationToken
impl<'de> Deserialize<'de> for DelegationToken
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 DelegationToken
impl RefUnwindSafe for DelegationToken
impl Send for DelegationToken
impl Sync for DelegationToken
impl Unpin for DelegationToken
impl UnsafeUnpin for DelegationToken
impl UnwindSafe for DelegationToken
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