pub struct ErrorBody {
pub kind: String,
pub message: String,
pub exit_code: i32,
pub chain: Vec<String>,
pub see_also: Vec<String>,
}Expand description
The failure detail inside an ErrorEnvelope.
Fields§
§kind: StringA small string union: "auth" | "budget" | "timeout" | "history" | "other". Mirrors the exit-code dispatch; a consumer can match on it or
on the exit_code.
message: StringA human-readable summary of the failure.
exit_code: i32The process exit code that accompanies this failure.
chain: Vec<String>The error-context chain, outermost first, root cause last.
see_also: Vec<String>Optional doc URLs relevant to the failure. Omitted when empty.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorBody
impl<'de> Deserialize<'de> for ErrorBody
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 ErrorBody
impl RefUnwindSafe for ErrorBody
impl Send for ErrorBody
impl Sync for ErrorBody
impl Unpin for ErrorBody
impl UnsafeUnpin for ErrorBody
impl UnwindSafe for ErrorBody
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