pub struct McpSSEServerConfig {
pub type_: String,
pub url: String,
pub headers: Option<HashMap<String, String>>,
}Expand description
Configuration for an MCP server using Server-Sent Events (SSE) transport.
§Fields
type_— Must be"sse".url— The SSE endpoint URL.headers— Optional HTTP headers to include in requests.
Fields§
§type_: StringDiscriminator for SSE transport ("sse").
url: StringSSE endpoint URL.
headers: Option<HashMap<String, String>>Optional HTTP headers for the SSE connection.
Trait Implementations§
Source§impl Clone for McpSSEServerConfig
impl Clone for McpSSEServerConfig
Source§fn clone(&self) -> McpSSEServerConfig
fn clone(&self) -> McpSSEServerConfig
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 McpSSEServerConfig
impl Debug for McpSSEServerConfig
Source§impl<'de> Deserialize<'de> for McpSSEServerConfig
impl<'de> Deserialize<'de> for McpSSEServerConfig
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 McpSSEServerConfig
impl PartialEq for McpSSEServerConfig
Source§impl Serialize for McpSSEServerConfig
impl Serialize for McpSSEServerConfig
impl Eq for McpSSEServerConfig
impl StructuralPartialEq for McpSSEServerConfig
Auto Trait Implementations§
impl Freeze for McpSSEServerConfig
impl RefUnwindSafe for McpSSEServerConfig
impl Send for McpSSEServerConfig
impl Sync for McpSSEServerConfig
impl Unpin for McpSSEServerConfig
impl UnsafeUnpin for McpSSEServerConfig
impl UnwindSafe for McpSSEServerConfig
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