pub struct ProtocolBinding(/* private fields */);Expand description
The protocol binding an AgentInterface advertises.
The spec lists JSONRPC, GRPC, and HTTP+JSON as the
officially supported values, but the field is an “open form
string” so a deployment can advertise a custom binding (e.g.
HTTP+SSE+JSON). The newtype is a typed boundary;
comparisons go through as_str, the custom constructor is
the escape hatch for forward compatibility, and the three
spec-named values are pre-built LazyLock constants in this
module (see JSONRPC, GRPC, HTTP_JSON).
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolBinding
impl Clone for ProtocolBinding
Source§impl Debug for ProtocolBinding
impl Debug for ProtocolBinding
Source§impl Default for ProtocolBinding
impl Default for ProtocolBinding
Source§impl<'de> Deserialize<'de> for ProtocolBinding
impl<'de> Deserialize<'de> for ProtocolBinding
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 Eq for ProtocolBinding
Source§impl Hash for ProtocolBinding
impl Hash for ProtocolBinding
Source§impl PartialEq for ProtocolBinding
impl PartialEq for ProtocolBinding
Source§impl Serialize for ProtocolBinding
impl Serialize for ProtocolBinding
impl StructuralPartialEq for ProtocolBinding
Auto Trait Implementations§
impl Freeze for ProtocolBinding
impl RefUnwindSafe for ProtocolBinding
impl Send for ProtocolBinding
impl Sync for ProtocolBinding
impl Unpin for ProtocolBinding
impl UnsafeUnpin for ProtocolBinding
impl UnwindSafe for ProtocolBinding
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