pub struct McpServerConfig { /* private fields */ }Expand description
Configuration for an MCP Streamable HTTP server endpoint.
Implementations§
Source§impl McpServerConfig
Inherent fluent builders for McpServerConfig.
impl McpServerConfig
Inherent fluent builders for McpServerConfig.
Sourcepub fn with_version<V>(self, version: V) -> Self
pub fn with_version<V>(self, version: V) -> Self
Sourcepub fn with_endpoint<E>(self, endpoint: E) -> Self
pub fn with_endpoint<E>(self, endpoint: E) -> Self
Sourcepub fn with_allowed_origins(self, allowed_origins: Vec<String>) -> Self
pub fn with_allowed_origins(self, allowed_origins: Vec<String>) -> Self
Sourcepub fn with_max_sessions(self, max_sessions: usize) -> Self
pub fn with_max_sessions(self, max_sessions: usize) -> Self
Sourcepub fn with_max_body_size(self, max_body_size: usize) -> Self
pub fn with_max_body_size(self, max_body_size: usize) -> Self
Sourcepub fn with_session_ttl_ms(self, session_ttl_ms: u64) -> Self
pub fn with_session_ttl_ms(self, session_ttl_ms: u64) -> Self
Source§impl McpServerConfig
impl McpServerConfig
pub fn get_name(&self) -> &String
pub fn get_mut_name(&mut self) -> &mut String
pub fn set_name(&mut self, val: String) -> &mut Self
pub fn get_version(&self) -> &String
pub fn get_mut_version(&mut self) -> &mut String
pub fn set_version(&mut self, val: String) -> &mut Self
pub fn get_protocol_version(&self) -> &String
pub fn get_mut_protocol_version(&mut self) -> &mut String
pub fn set_protocol_version(&mut self, val: String) -> &mut Self
pub fn get_endpoint(&self) -> &String
pub fn get_mut_endpoint(&mut self) -> &mut String
pub fn set_endpoint(&mut self, val: String) -> &mut Self
pub fn get_allowed_origins(&self) -> &Vec<String>
pub fn get_mut_allowed_origins(&mut self) -> &mut Vec<String>
pub fn set_allowed_origins(&mut self, val: Vec<String>) -> &mut Self
pub fn get_max_sessions(&self) -> usize
pub fn get_mut_max_sessions(&mut self) -> &mut usize
pub fn set_max_sessions(&mut self, val: usize) -> &mut Self
pub fn get_max_body_size(&self) -> usize
pub fn get_mut_max_body_size(&mut self) -> &mut usize
pub fn set_max_body_size(&mut self, val: usize) -> &mut Self
pub fn get_session_ttl_ms(&self) -> u64
pub fn get_mut_session_ttl_ms(&mut self) -> &mut u64
pub fn set_session_ttl_ms(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for McpServerConfig
impl Clone for McpServerConfig
Source§impl Debug for McpServerConfig
impl Debug for McpServerConfig
Source§impl Default for McpServerConfig
Default construction for McpServerConfig.
impl Default for McpServerConfig
Default construction for McpServerConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a default McpServerConfig value.
impl Eq for McpServerConfig
Source§impl PartialEq for McpServerConfig
impl PartialEq for McpServerConfig
impl StructuralPartialEq for McpServerConfig
Auto Trait Implementations§
impl Forget for McpServerConfig
impl Freeze for McpServerConfig
impl Move for McpServerConfig
impl RefUnwindSafe for McpServerConfig
impl Send for McpServerConfigwhere
RawVecInner: Send,
impl Sync for McpServerConfigwhere
RawVecInner: Sync,
impl Unpin for McpServerConfig
impl UnsafeUnpin for McpServerConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for McpServerConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.