pub struct UnsupportedProtocolVersionData {
pub supported: Vec<String>,
pub requested: String,
}Expand description
SEP-2575 error data for UnsupportedProtocolVersion (-32022).
Wire shape per the draft schema:
{
"supported": ["2026-07-28", "2025-11-25"],
"requested": "2027-01-01"
}Fields§
§supported: Vec<String>Protocol versions the server supports. The client should pick a mutually-supported version from this list and retry.
requested: StringThe protocol version that was requested by the client.
Trait Implementations§
Source§impl Clone for UnsupportedProtocolVersionData
impl Clone for UnsupportedProtocolVersionData
Source§fn clone(&self) -> UnsupportedProtocolVersionData
fn clone(&self) -> UnsupportedProtocolVersionData
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 UnsupportedProtocolVersionData
impl<'de> Deserialize<'de> for UnsupportedProtocolVersionData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersionData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersionData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UnsupportedProtocolVersionData
impl Serialize for UnsupportedProtocolVersionData
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 UnsupportedProtocolVersionData
impl RefUnwindSafe for UnsupportedProtocolVersionData
impl Send for UnsupportedProtocolVersionData
impl Sync for UnsupportedProtocolVersionData
impl Unpin for UnsupportedProtocolVersionData
impl UnsafeUnpin for UnsupportedProtocolVersionData
impl UnwindSafe for UnsupportedProtocolVersionData
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