pub struct GenericErrorContent {
pub debug: Option<String>,
pub error: Option<String>,
pub error_description: Option<String>,
pub message: Option<String>,
pub status_code: Option<i64>,
}
Expand description
GenericErrorContent : Error response
Fields§
§debug: Option<String>
Debug contains debug information. This is usually not available and has to be enabled.
error: Option<String>
Name is the error name.
error_description: Option<String>
Description contains further information on the nature of the error.
message: Option<String>
Message contains the error message.
status_code: Option<i64>
Code represents the error status code (404, 403, 401, …).
Implementations§
source§impl GenericErrorContent
impl GenericErrorContent
sourcepub fn new() -> GenericErrorContent
pub fn new() -> GenericErrorContent
Error response
Trait Implementations§
source§impl Clone for GenericErrorContent
impl Clone for GenericErrorContent
source§fn clone(&self) -> GenericErrorContent
fn clone(&self) -> GenericErrorContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GenericErrorContent
impl Debug for GenericErrorContent
source§impl Default for GenericErrorContent
impl Default for GenericErrorContent
source§impl<'de> Deserialize<'de> for GenericErrorContent
impl<'de> Deserialize<'de> for GenericErrorContent
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 PartialEq<GenericErrorContent> for GenericErrorContent
impl PartialEq<GenericErrorContent> for GenericErrorContent
source§fn eq(&self, other: &GenericErrorContent) -> bool
fn eq(&self, other: &GenericErrorContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.