pub struct AgentCardPayload {
pub iss: String,
pub sub: String,
pub iat: i64,
pub exp: i64,
pub agent_id: String,
pub public_key: PublicKeyDeclaration,
pub capabilities: CapabilitySet,
pub endpoints: Endpoints,
}Expand description
Parsed JWS payload of a JWS-signed agent card (ADR-0025).
Fields beyond these are tolerated (forward-compat); unknown fields
are dropped by serde(deny_unknown_fields = false) (the default).
Fields§
§iss: StringIssuer DID (typically the authority, e.g. did:web:acme.com).
sub: StringSubject DID — same as agent_id for self-signed cards.
iat: i64iat claim, Unix seconds.
exp: i64exp claim, Unix seconds.
agent_id: StringFull agent_id as advertised by this card.
public_key: PublicKeyDeclarationPublic key declaration (W3C Verifiable Credentials shape).
capabilities: CapabilitySetCapability bits as wire strings (see aex_core::Capability).
endpoints: EndpointsEndpoint hints (control plane, data planes).
Implementations§
Source§impl AgentCardPayload
impl AgentCardPayload
Sourcepub fn has_capability(&self, cap: Capability) -> bool
pub fn has_capability(&self, cap: Capability) -> bool
Convenience: does this card advertise the given capability?
Trait Implementations§
Source§impl Clone for AgentCardPayload
impl Clone for AgentCardPayload
Source§fn clone(&self) -> AgentCardPayload
fn clone(&self) -> AgentCardPayload
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 AgentCardPayload
impl Debug for AgentCardPayload
Source§impl<'de> Deserialize<'de> for AgentCardPayload
impl<'de> Deserialize<'de> for AgentCardPayload
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 AgentCardPayload
impl RefUnwindSafe for AgentCardPayload
impl Send for AgentCardPayload
impl Sync for AgentCardPayload
impl Unpin for AgentCardPayload
impl UnsafeUnpin for AgentCardPayload
impl UnwindSafe for AgentCardPayload
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