pub struct UnsupportedProtocolVersionErrorError {
pub code: i64,
pub data: UnsupportedProtocolVersionErrorErrorData,
pub message: String,
}Expand description
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<UnsupportedProtocolVersionErrorError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersionErrorError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UnsupportedProtocolVersionErrorError
impl Serialize for UnsupportedProtocolVersionErrorError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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