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