pub struct UnsupportedProtocolVersionErrorError {
pub code: i64,
pub data: UnsupportedProtocolVersionErrorErrorData,
pub message: String,
}Expand description
Latest MCP Protocol 2026_07_28 UnsupportedProtocolVersionErrorError
JSON schema
{
"allOf": [
{
"$ref": "#/$defs/Error"
},
{
"type": "object",
"required": [
"code",
"data"
],
"properties": {
"code": {
"type": "integer"
},
"data": {
"type": "object",
"required": [
"requested",
"supported"
],
"properties": {
"requested": {
"description": "The protocol version that was requested by the client.",
"type": "string"
},
"supported": {
"description": "Protocol versions the server supports. The client should choose a\nmutually supported version from this list and retry.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
]
}Fields§
§code: i64§data: UnsupportedProtocolVersionErrorErrorData§message: StringA short description of the error. The message SHOULD be limited to a concise single sentence.
Trait Implementations§
Source§impl Clone for UnsupportedProtocolVersionErrorError
impl Clone for UnsupportedProtocolVersionErrorError
Source§fn clone(&self) -> UnsupportedProtocolVersionErrorError
fn clone(&self) -> UnsupportedProtocolVersionErrorError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for UnsupportedProtocolVersionErrorError
impl<'de> Deserialize<'de> for UnsupportedProtocolVersionErrorError
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 UnsupportedProtocolVersionErrorError
impl RefUnwindSafe for UnsupportedProtocolVersionErrorError
impl Send for UnsupportedProtocolVersionErrorError
impl Sync for UnsupportedProtocolVersionErrorError
impl Unpin for UnsupportedProtocolVersionErrorError
impl UnsafeUnpin for UnsupportedProtocolVersionErrorError
impl UnwindSafe for UnsupportedProtocolVersionErrorError
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