pub struct McpServerHttp {
pub name: String,
pub url: String,
pub headers: Vec<HttpHeader>,
}Expand description
HTTP transport configuration for MCP.
Fields§
§name: StringHuman-readable name identifying this server.
url: StringURL to the MCP server.
headers: Vec<HttpHeader>HTTP headers to set on every request to the server.
Trait Implementations§
Source§impl Clone for McpServerHttp
impl Clone for McpServerHttp
Source§impl Debug for McpServerHttp
impl Debug for McpServerHttp
Source§impl<'de> Deserialize<'de> for McpServerHttp
impl<'de> Deserialize<'de> for McpServerHttp
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 McpServerHttp
Source§impl PartialEq for McpServerHttp
impl PartialEq for McpServerHttp
Source§impl Serialize for McpServerHttp
impl Serialize for McpServerHttp
impl StructuralPartialEq for McpServerHttp
Auto Trait Implementations§
impl Freeze for McpServerHttp
impl RefUnwindSafe for McpServerHttp
impl Send for McpServerHttp
impl Sync for McpServerHttp
impl Unpin for McpServerHttp
impl UnsafeUnpin for McpServerHttp
impl UnwindSafe for McpServerHttp
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