pub struct AgentCardSignature {
pub protected: String,
pub signature: String,
pub header: Option<Value>,
}Expand description
A single JWS signature over an AgentCard, per A2A 1.0.0 §8.4.2.
The signed payload is the RFC 8785 JCS canonicalization of the card’s JSON
representation with the signatures field itself removed. See
crate::card_signing for the verification algorithm and its known limitations.
Fields§
§protected: StringBase64url-encoded (unpadded) JWS protected header, e.g. {"alg":"ES256","kid":"key-1"}.
signature: StringBase64url-encoded (unpadded) signature bytes.
header: Option<Value>Optional unprotected JWS header (A2A spec §8.4.2 header field).
Trait Implementations§
Source§impl Clone for AgentCardSignature
impl Clone for AgentCardSignature
Source§fn clone(&self) -> AgentCardSignature
fn clone(&self) -> AgentCardSignature
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 AgentCardSignature
impl Debug for AgentCardSignature
Source§impl<'de> Deserialize<'de> for AgentCardSignature
impl<'de> Deserialize<'de> for AgentCardSignature
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 AgentCardSignature
impl RefUnwindSafe for AgentCardSignature
impl Send for AgentCardSignature
impl Sync for AgentCardSignature
impl Unpin for AgentCardSignature
impl UnsafeUnpin for AgentCardSignature
impl UnwindSafe for AgentCardSignature
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