pub struct AgentCard {
pub name: String,
pub version: String,
pub description: String,
pub endpoint: Aid,
pub capabilities: Vec<Capability>,
pub auth_scheme: String,
pub key_id: Option<String>,
pub public_key: Option<Vec<u8>>,
pub rate_hint: Option<u32>,
pub valid_until: Option<i64>,
pub sig: Option<Vec<u8>>,
}Expand description
Signed capability descriptor (spec §7).
Fields§
§name: String§version: String§description: String§endpoint: Aid§capabilities: Vec<Capability>§auth_scheme: String§key_id: Option<String>§public_key: Option<Vec<u8>>Ed25519 public key (32 bytes) when auth_scheme == “ed25519”.
rate_hint: Option<u32>§valid_until: Option<i64>§sig: Option<Vec<u8>>Signature of the card by its own key (covers all fields above).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentCard
impl<'de> Deserialize<'de> for AgentCard
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
impl StructuralPartialEq for AgentCard
Auto Trait Implementations§
impl Freeze for AgentCard
impl RefUnwindSafe for AgentCard
impl Send for AgentCard
impl Sync for AgentCard
impl Unpin for AgentCard
impl UnsafeUnpin for AgentCard
impl UnwindSafe for AgentCard
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