pub struct JsonResponseError {
pub code: Option<String>,
pub message: Option<String>,
pub type_: Option<String>,
}Expand description
Error information (present when an error occurs).
Fields§
§code: Option<String>Error code.
message: Option<String>Human-readable error message.
type_: Option<String>Error type category.
Implementations§
Source§impl JsonResponseError
impl JsonResponseError
pub fn builder() -> JsonResponseError
Trait Implementations§
Source§impl Clone for JsonResponseError
impl Clone for JsonResponseError
Source§impl Debug for JsonResponseError
impl Debug for JsonResponseError
Source§impl Default for JsonResponseError
impl Default for JsonResponseError
Source§impl<'de> Deserialize<'de> for JsonResponseError
impl<'de> Deserialize<'de> for JsonResponseError
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
Source§impl From<JsonResponseError> for JsonResponseError
impl From<JsonResponseError> for JsonResponseError
Source§fn from(value: JsonResponseError) -> Self
fn from(value: JsonResponseError) -> Self
Converts to this type from the input type.
Source§impl Serialize for JsonResponseError
impl Serialize for JsonResponseError
Source§impl TryFrom<JsonResponseError> for JsonResponseError
impl TryFrom<JsonResponseError> for JsonResponseError
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: JsonResponseError) -> Result<Self, ConversionError>
fn try_from(value: JsonResponseError) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for JsonResponseError
impl Freeze for JsonResponseError
impl Move for JsonResponseError
impl RefUnwindSafe for JsonResponseError
impl Send for JsonResponseErrorwhere
RawVecInner: Send,
impl Sync for JsonResponseErrorwhere
RawVecInner: Sync,
impl Unpin for JsonResponseError
impl UnsafeUnpin for JsonResponseError
impl UnwindSafe for JsonResponseErrorwhere
RawVecInner: UnwindSafe,
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