pub struct InitializeRequestParams {
pub capabilities: ClientCapabilities,
pub client_info: Implementation,
pub meta: Option<InitializeMeta>,
pub protocol_version: String,
}Expand description
Parameters for an initialize request.
JSON schema
{
"description": "Parameters for an initialize request.",
"type": "object",
"required": [
"capabilities",
"clientInfo",
"protocolVersion"
],
"properties": {
"_meta": {
"description": "See [General fields: _meta](https://modelcontextprotocol.io/specification/2025-11-25/basic/index#meta) for notes on _meta usage.",
"type": "object",
"properties": {
"progressToken": {
"description": "If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.",
"$ref": "#/$defs/ProgressToken"
}
},
"additionalProperties": {}
},
"capabilities": {
"$ref": "#/$defs/ClientCapabilities"
},
"clientInfo": {
"$ref": "#/$defs/Implementation"
},
"protocolVersion": {
"description": "The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.",
"type": "string"
}
}
}Fields§
§capabilities: ClientCapabilities§client_info: Implementation§meta: Option<InitializeMeta>§protocol_version: StringThe latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
Trait Implementations§
Source§impl Clone for InitializeRequestParams
impl Clone for InitializeRequestParams
Source§fn clone(&self) -> InitializeRequestParams
fn clone(&self) -> InitializeRequestParams
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 InitializeRequestParams
impl Debug for InitializeRequestParams
Source§impl<'de> Deserialize<'de> for InitializeRequestParams
impl<'de> Deserialize<'de> for InitializeRequestParams
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 InitializeRequestParams
impl RefUnwindSafe for InitializeRequestParams
impl Send for InitializeRequestParams
impl Sync for InitializeRequestParams
impl Unpin for InitializeRequestParams
impl UnwindSafe for InitializeRequestParams
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