pub struct AgentInterface {
pub protocol_version: String,
pub transport: A2ATransport,
pub url: String,
pub tenant: Option<String>,
}Expand description
One interface of an agent (v1.0.1 supportedInterfaces[] entry).
v1.0.1 breaks with v0.3: instead of a single protocol declaration on the
card, each interface carries its own protocolVersion, transport binding,
URL, and (enterprise multi-tenancy) optional tenant.
Fields§
§protocol_version: StringProtocol version spoken on THIS interface (e.g. “1.0.1”).
transport: A2ATransportTransport binding of this interface.
url: StringEndpoint URL for this interface.
tenant: Option<String>Enterprise multi-tenancy: tenant this interface serves (optional).
Implementations§
Trait Implementations§
Source§impl Clone for AgentInterface
impl Clone for AgentInterface
Source§fn clone(&self) -> AgentInterface
fn clone(&self) -> AgentInterface
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 AgentInterface
impl Debug for AgentInterface
Source§impl<'de> Deserialize<'de> for AgentInterface
impl<'de> Deserialize<'de> for AgentInterface
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 AgentInterface
impl PartialEq for AgentInterface
Source§impl Serialize for AgentInterface
impl Serialize for AgentInterface
impl StructuralPartialEq for AgentInterface
Auto Trait Implementations§
impl Freeze for AgentInterface
impl RefUnwindSafe for AgentInterface
impl Send for AgentInterface
impl Sync for AgentInterface
impl Unpin for AgentInterface
impl UnsafeUnpin for AgentInterface
impl UnwindSafe for AgentInterface
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