pub struct ServerInfo {
pub name: &'static str,
pub version: &'static str,
pub description: &'static str,
pub protocol_version: ProtocolVersion,
}Expand description
Server information constants
Fields§
§name: &'static str§version: &'static str§description: &'static str§protocol_version: ProtocolVersionImplementations§
Source§impl ServerInfo
impl ServerInfo
Sourcepub fn tool_capabilities() -> ServerCapabilities
pub fn tool_capabilities() -> ServerCapabilities
Get server capabilities for tools only
Sourcepub fn full_capabilities() -> ServerCapabilities
pub fn full_capabilities() -> ServerCapabilities
Get full server capabilities
Sourcepub fn implementation(&self) -> Implementation
pub fn implementation(&self) -> Implementation
Get implementation info
Sourcepub fn server_info(&self) -> ServerInfo
pub fn server_info(&self) -> ServerInfo
Get server info for MCP responses
Sourcepub fn initialize_result(&self) -> InitializeResult
pub fn initialize_result(&self) -> InitializeResult
Get initialize result
Sourcepub fn health_response(&self) -> Value
pub fn health_response(&self) -> Value
Get health check response
Sourcepub fn oauth_provider_info(&self) -> Value
pub fn oauth_provider_info(&self) -> Value
Get OAuth provider specific info
Auto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnwindSafe for ServerInfo
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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.