pub struct ProtocolSupport {
pub protocol: String,
pub version: Option<String>,
pub endpoint: Option<String>,
}Expand description
A supported protocol with optional version and endpoint.
§Examples
use oas_document::interop::ProtocolSupport;
let proto = ProtocolSupport {
protocol: "mcp".to_string(),
version: Some("2025-01".to_string()),
endpoint: Some("https://agent.acme.com/mcp".to_string()),
};Fields§
§protocol: StringProtocol identifier: "mcp", "a2a", "rest", "graphql",
"grpc", "websocket", "oas-map".
version: Option<String>Protocol version if applicable.
endpoint: Option<String>Endpoint URL for this protocol.
Trait Implementations§
Source§impl Clone for ProtocolSupport
impl Clone for ProtocolSupport
Source§impl Debug for ProtocolSupport
impl Debug for ProtocolSupport
Source§impl<'de> Deserialize<'de> for ProtocolSupport
impl<'de> Deserialize<'de> for ProtocolSupport
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 ProtocolSupport
Source§impl PartialEq for ProtocolSupport
impl PartialEq for ProtocolSupport
Source§impl Serialize for ProtocolSupport
impl Serialize for ProtocolSupport
impl StructuralPartialEq for ProtocolSupport
Auto Trait Implementations§
impl Freeze for ProtocolSupport
impl RefUnwindSafe for ProtocolSupport
impl Send for ProtocolSupport
impl Sync for ProtocolSupport
impl Unpin for ProtocolSupport
impl UnsafeUnpin for ProtocolSupport
impl UnwindSafe for ProtocolSupport
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