pub struct A2aHandshakeRequest {
pub agent_id: String,
pub role: AgentRole,
pub capability_level: AgentCapabilityLevel,
pub supported_protocols: Vec<A2aProtocol>,
pub advertised_capabilities: Vec<A2aCapability>,
}Fields§
§agent_id: String§role: AgentRole§capability_level: AgentCapabilityLevel§supported_protocols: Vec<A2aProtocol>§advertised_capabilities: Vec<A2aCapability>Implementations§
Source§impl A2aHandshakeRequest
impl A2aHandshakeRequest
pub fn supports_protocol_version(&self, version: &str) -> bool
pub fn supports_current_protocol(&self) -> bool
pub fn negotiate_supported_protocol(&self) -> Option<A2aProtocol>
Trait Implementations§
Source§impl Clone for A2aHandshakeRequest
impl Clone for A2aHandshakeRequest
Source§fn clone(&self) -> A2aHandshakeRequest
fn clone(&self) -> A2aHandshakeRequest
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 A2aHandshakeRequest
impl Debug for A2aHandshakeRequest
Source§impl<'de> Deserialize<'de> for A2aHandshakeRequest
impl<'de> Deserialize<'de> for A2aHandshakeRequest
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 A2aHandshakeRequest
impl PartialEq for A2aHandshakeRequest
Source§impl Serialize for A2aHandshakeRequest
impl Serialize for A2aHandshakeRequest
impl Eq for A2aHandshakeRequest
impl StructuralPartialEq for A2aHandshakeRequest
Auto Trait Implementations§
impl Freeze for A2aHandshakeRequest
impl RefUnwindSafe for A2aHandshakeRequest
impl Send for A2aHandshakeRequest
impl Sync for A2aHandshakeRequest
impl Unpin for A2aHandshakeRequest
impl UnsafeUnpin for A2aHandshakeRequest
impl UnwindSafe for A2aHandshakeRequest
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