pub struct ExecutionNonce {
pub schema: String,
pub nonce_id: String,
pub issued_at: i64,
pub expires_at: i64,
pub bound_to: NonceBinding,
}Expand description
The signable body of an execution nonce.
This is the canonical-JSON-serialized message the kernel signs. Every field is covered by the signature; none are mutable after issuance.
Fields§
§schema: StringSchema identifier. Must equal EXECUTION_NONCE_SCHEMA.
nonce_id: StringUnique nonce identifier (UUIDv7 hex).
issued_at: i64Unix timestamp (seconds) when the kernel issued this nonce.
expires_at: i64Unix timestamp (seconds) when this nonce expires.
Default: issued_at + 30. Configurable via ExecutionNonceConfig.
bound_to: NonceBindingInvocation binding: subject, capability, server, tool, parameter hash.
Trait Implementations§
Source§impl Clone for ExecutionNonce
impl Clone for ExecutionNonce
Source§fn clone(&self) -> ExecutionNonce
fn clone(&self) -> ExecutionNonce
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 ExecutionNonce
impl Debug for ExecutionNonce
Source§impl<'de> Deserialize<'de> for ExecutionNonce
impl<'de> Deserialize<'de> for ExecutionNonce
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
Source§impl PartialEq for ExecutionNonce
impl PartialEq for ExecutionNonce
Source§impl Serialize for ExecutionNonce
impl Serialize for ExecutionNonce
impl Eq for ExecutionNonce
impl StructuralPartialEq for ExecutionNonce
Auto Trait Implementations§
impl Freeze for ExecutionNonce
impl RefUnwindSafe for ExecutionNonce
impl Send for ExecutionNonce
impl Sync for ExecutionNonce
impl Unpin for ExecutionNonce
impl UnsafeUnpin for ExecutionNonce
impl UnwindSafe for ExecutionNonce
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.