pub struct UnsupportedProtocolVersionErrorErrorData {
pub requested: String,
pub supported: Vec<String>,
}Expand description
UnsupportedProtocolVersionErrorErrorData
JSON schema
{
"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§
§requested: StringThe protocol version that was requested by the client.
supported: Vec<String>Protocol versions the server supports. The client should choose a mutually supported version from this list and retry.
Trait Implementations§
Source§impl Clone for UnsupportedProtocolVersionErrorErrorData
impl Clone for UnsupportedProtocolVersionErrorErrorData
Source§fn clone(&self) -> UnsupportedProtocolVersionErrorErrorData
fn clone(&self) -> UnsupportedProtocolVersionErrorErrorData
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 UnsupportedProtocolVersionErrorErrorData
impl<'de> Deserialize<'de> for UnsupportedProtocolVersionErrorErrorData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersionErrorErrorData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersionErrorErrorData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UnsupportedProtocolVersionErrorErrorData
impl Serialize for UnsupportedProtocolVersionErrorErrorData
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 UnsupportedProtocolVersionErrorErrorData
impl RefUnwindSafe for UnsupportedProtocolVersionErrorErrorData
impl Send for UnsupportedProtocolVersionErrorErrorData
impl Sync for UnsupportedProtocolVersionErrorErrorData
impl Unpin for UnsupportedProtocolVersionErrorErrorData
impl UnsafeUnpin for UnsupportedProtocolVersionErrorErrorData
impl UnwindSafe for UnsupportedProtocolVersionErrorErrorData
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