pub struct InitializeResult {
pub protocol_version: ProtocolVersion,
pub capabilities: ServerCapabilities,
pub server_info: Implementation,
pub instructions: Option<String>,
pub _meta: Option<Value>,
}Expand description
The response to a successful initialize request.
The server sends this message to confirm the connection parameters and to declare its own capabilities.
Fields§
§protocol_version: ProtocolVersionThe protocol version that will be used for the session, chosen by the server.
capabilities: ServerCapabilitiesThe capabilities supported by the server.
server_info: ImplementationInformation about the server’s implementation (e.g., name, version).
instructions: Option<String>Optional human-readable instructions for the client.
_meta: Option<Value>Optional metadata for the result.
Trait Implementations§
Source§impl Clone for InitializeResult
impl Clone for InitializeResult
Source§fn clone(&self) -> InitializeResult
fn clone(&self) -> InitializeResult
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 InitializeResult
impl Debug for InitializeResult
Source§impl<'de> Deserialize<'de> for InitializeResult
impl<'de> Deserialize<'de> for InitializeResult
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
Auto Trait Implementations§
impl Freeze for InitializeResult
impl RefUnwindSafe for InitializeResult
impl Send for InitializeResult
impl Sync for InitializeResult
impl Unpin for InitializeResult
impl UnwindSafe for InitializeResult
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