pub struct DpopProofBody {
pub schema: String,
pub capability_id: String,
pub tool_server: String,
pub tool_name: String,
pub action_hash: String,
pub nonce: String,
pub issued_at: u64,
pub agent_key: PublicKey,
}Expand description
The signable body of a DPoP proof.
This is the canonical-JSON-serialized message that the agent signs. All fields are included in the signature; none are mutable after signing.
Fields§
§schema: StringSchema identifier. Must equal DPOP_SCHEMA.
capability_id: StringID of the capability token being used for this invocation.
tool_server: Stringserver_id of the tool server being called.
tool_name: StringName of the tool being invoked.
action_hash: StringSHA-256 hex of the serialized tool arguments (action binding).
nonce: StringCaller-chosen random string; must be unique within the TTL window.
issued_at: u64Unix seconds when this proof was created.
agent_key: PublicKeyHex-encoded Ed25519 public key of the signer (must equal capability.subject).
Trait Implementations§
Source§impl Clone for DpopProofBody
impl Clone for DpopProofBody
Source§fn clone(&self) -> DpopProofBody
fn clone(&self) -> DpopProofBody
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 DpopProofBody
impl Debug for DpopProofBody
Source§impl<'de> Deserialize<'de> for DpopProofBody
impl<'de> Deserialize<'de> for DpopProofBody
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 DpopProofBody
impl RefUnwindSafe for DpopProofBody
impl Send for DpopProofBody
impl Sync for DpopProofBody
impl Unpin for DpopProofBody
impl UnsafeUnpin for DpopProofBody
impl UnwindSafe for DpopProofBody
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