Struct ory_client::models::generic_error::GenericError [−][src]
pub struct GenericError {
pub code: Option<i64>,
pub debug: Option<String>,
pub details: Option<Value>,
pub error: Option<String>,
pub error_description: Option<String>,
pub id: Option<String>,
pub message: String,
pub reason: Option<String>,
pub request: Option<String>,
pub status: Option<String>,
pub status_code: Option<i64>,
}
Expand description
GenericError : Error responses are sent when an error (e.g. unauthorized, bad request, …) occurred.
Fields
code: Option<i64>
The status code
debug: Option<String>
Debug contains debug information. This is usually not available and has to be enabled.
details: Option<Value>
Further error details
error: Option<String>
Name is the error name.
error_description: Option<String>
Description contains further information on the nature of the error.
id: Option<String>
The error ID Useful when trying to identify various errors in application logic.
message: String
Message contains the error message.
reason: Option<String>
A human-readable reason for the error
request: Option<String>
The request ID The request ID is often exposed internally in order to trace errors across service architectures. This is often a UUID.
status: Option<String>
The status description
status_code: Option<i64>
Code represents the error status code (404, 403, 401, …).
Implementations
Error responses are sent when an error (e.g. unauthorized, bad request, …) occurred.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GenericError
impl Send for GenericError
impl Sync for GenericError
impl Unpin for GenericError
impl UnwindSafe for GenericError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more