pub struct NonceBinding {
pub subject_id: String,
pub capability_id: String,
pub tool_server: String,
pub tool_name: String,
pub parameter_hash: String,
}Expand description
Fields that tie a nonce to one specific tool invocation.
All five fields are in the signed body, so any mismatch during verify means either the nonce was minted for a different call or the nonce was tampered with after issuance.
Fields§
§subject_id: StringHex-encoded subject (agent) public key, taken from capability.subject.
capability_id: StringID of the capability that authorized this invocation.
tool_server: StringTool server that is expected to execute the call.
tool_name: StringTool name that is expected to execute.
parameter_hash: StringSHA-256 hex of the canonical JSON of the evaluated arguments. Taken
directly from the ToolCallAction::parameter_hash that the kernel
embedded in the allow receipt.
Trait Implementations§
Source§impl Clone for NonceBinding
impl Clone for NonceBinding
Source§fn clone(&self) -> NonceBinding
fn clone(&self) -> NonceBinding
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 NonceBinding
impl Debug for NonceBinding
Source§impl<'de> Deserialize<'de> for NonceBinding
impl<'de> Deserialize<'de> for NonceBinding
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 NonceBinding
impl PartialEq for NonceBinding
Source§impl Serialize for NonceBinding
impl Serialize for NonceBinding
impl Eq for NonceBinding
impl StructuralPartialEq for NonceBinding
Auto Trait Implementations§
impl Freeze for NonceBinding
impl RefUnwindSafe for NonceBinding
impl Send for NonceBinding
impl Sync for NonceBinding
impl Unpin for NonceBinding
impl UnsafeUnpin for NonceBinding
impl UnwindSafe for NonceBinding
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.