pub struct ErrorResponse {
pub correlation_id: String,
pub key: String,
pub message: String,
pub status: i32,
pub type_: String,
}Expand description
ErrorResponse
JSON schema
{
"type": "object",
"required": [
"correlationId",
"key",
"message",
"status",
"type"
],
"properties": {
"correlationId": {
"examples": [
"550e8400-e29b-41d4-a716-446655440000"
],
"type": "string"
},
"key": {
"examples": [
"http_error"
],
"type": "string"
},
"message": {
"examples": [
"Authentication required"
],
"type": "string"
},
"status": {
"examples": [
401
],
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"type": {
"examples": [
"http_error"
],
"type": "string"
}
}
}Fields§
§correlation_id: String§key: String§message: String§status: i32§type_: StringTrait Implementations§
Source§impl Clone for ErrorResponse
impl Clone for ErrorResponse
Source§impl Debug for ErrorResponse
impl Debug for ErrorResponse
Source§impl<'de> Deserialize<'de> for ErrorResponse
impl<'de> Deserialize<'de> for ErrorResponse
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
Auto Trait Implementations§
impl Forget for ErrorResponse
impl Freeze for ErrorResponse
impl Move for ErrorResponse
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponsewhere
RawVecInner: Send,
impl Sync for ErrorResponsewhere
RawVecInner: Sync,
impl Unpin for ErrorResponse
impl UnsafeUnpin for ErrorResponse
impl UnwindSafe for ErrorResponsewhere
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