pub struct Error {
pub error: ErrorError,
}Expand description
The Harmont error envelope.
JSON schema
{
"title": "Error",
"description": "The Harmont error envelope.",
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message",
"type"
],
"properties": {
"code": {
"description": "Catalog code.",
"type": "string"
},
"doc_url": {
"description": "Docs link for this error.",
"type": "string"
},
"message": {
"description": "Human-readable message.",
"type": "string"
},
"request_id": {
"description": "Correlates with server logs/traces.",
"type": "string"
},
"type": {
"description": "Stable machine error type.",
"type": "string"
}
}
}
}
}Fields§
§error: ErrorErrorTrait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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