pub struct UnsupportedProtocolVersionErrorObject {
pub code: i64,
pub data: UnsupportedProtocolVersionErrorData,
pub message: String,
}Fields§
§code: i64§data: UnsupportedProtocolVersionErrorData§message: StringA short description of the error. The message SHOULD be limited to a concise single sentence.
Implementations§
Source§impl UnsupportedProtocolVersionErrorObject
impl UnsupportedProtocolVersionErrorObject
Sourcepub fn new(
code: i64,
data: UnsupportedProtocolVersionErrorData,
message: String,
) -> UnsupportedProtocolVersionErrorObject
pub fn new( code: i64, data: UnsupportedProtocolVersionErrorData, message: String, ) -> UnsupportedProtocolVersionErrorObject
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for UnsupportedProtocolVersionErrorObject
impl Clone for UnsupportedProtocolVersionErrorObject
Source§fn clone(&self) -> UnsupportedProtocolVersionErrorObject
fn clone(&self) -> UnsupportedProtocolVersionErrorObject
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 UnsupportedProtocolVersionErrorObject
impl<'de> Deserialize<'de> for UnsupportedProtocolVersionErrorObject
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersionErrorObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnsupportedProtocolVersionErrorObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UnsupportedProtocolVersionErrorObject
impl Serialize for UnsupportedProtocolVersionErrorObject
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
impl StructuralPartialEq for UnsupportedProtocolVersionErrorObject
Auto Trait Implementations§
impl Freeze for UnsupportedProtocolVersionErrorObject
impl RefUnwindSafe for UnsupportedProtocolVersionErrorObject
impl Send for UnsupportedProtocolVersionErrorObject
impl Sync for UnsupportedProtocolVersionErrorObject
impl Unpin for UnsupportedProtocolVersionErrorObject
impl UnsafeUnpin for UnsupportedProtocolVersionErrorObject
impl UnwindSafe for UnsupportedProtocolVersionErrorObject
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