pub struct McpLoadServersOptions {
pub prefix_with_server_name: bool,
}Expand description
How McpClient::load_servers turns entries into clients (McpLoadServersOptions).
Fields§
§prefix_with_server_name: boolServers without an explicit prefix use their config key as the tool name prefix, with
characters outside [A-Za-z0-9_-] replaced by _. Takes precedence over a default
prefix; a server opts out with prefix: "".
Implementations§
Source§impl McpLoadServersOptions
impl McpLoadServersOptions
Sourcepub fn builder() -> McpLoadServersOptionsBuilder
pub fn builder() -> McpLoadServersOptionsBuilder
Create an instance of McpLoadServersOptions using the builder syntax
Trait Implementations§
Source§impl Clone for McpLoadServersOptions
impl Clone for McpLoadServersOptions
Source§impl Debug for McpLoadServersOptions
impl Debug for McpLoadServersOptions
Auto Trait Implementations§
impl Freeze for McpLoadServersOptions
impl RefUnwindSafe for McpLoadServersOptions
impl Send for McpLoadServersOptions
impl Sync for McpLoadServersOptions
impl Unpin for McpLoadServersOptions
impl UnsafeUnpin for McpLoadServersOptions
impl UnwindSafe for McpLoadServersOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.