pub struct McpHttpConfig {
pub transport: StreamableHttpClientTransportConfig,
pub oauth: Option<McpOAuthConfig>,
}Fields§
§transport: StreamableHttpClientTransportConfig§oauth: Option<McpOAuthConfig>Implementations§
Source§impl McpHttpConfig
impl McpHttpConfig
pub fn oauth_client_id(&self) -> Option<&str>
pub fn callback_port(&self) -> Option<NonZeroU16>
Trait Implementations§
Source§impl Clone for McpHttpConfig
impl Clone for McpHttpConfig
Source§fn clone(&self) -> McpHttpConfig
fn clone(&self) -> McpHttpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 McpHttpConfig
impl Debug for McpHttpConfig
Source§impl From<StreamableHttpClientTransportConfig> for McpHttpConfig
impl From<StreamableHttpClientTransportConfig> for McpHttpConfig
Source§fn from(transport: StreamableHttpClientTransportConfig) -> Self
fn from(transport: StreamableHttpClientTransportConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for McpHttpConfig
impl !UnwindSafe for McpHttpConfig
impl Freeze for McpHttpConfig
impl Send for McpHttpConfig
impl Sync for McpHttpConfig
impl Unpin for McpHttpConfig
impl UnsafeUnpin for McpHttpConfig
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