pub struct ErrorBody {
pub code: u8,
pub kind: String,
pub message: String,
pub retryable: bool,
pub retry_after_secs: Option<u64>,
pub suggestions: Option<Vec<Suggestion>>,
}Expand description
Error body fields inside the envelope.
Fields§
§code: u8Process exit code as an integer.
kind: StringSnake_case error kind.
message: StringTechnical English message.
retryable: boolWhether an agent may retry after backoff.
retry_after_secs: Option<u64>Optional Retry-After seconds.
suggestions: Option<Vec<Suggestion>>Ranked --suggest alternatives, best first.
Present only when the recovery ladder produced at least one candidate, so
an ordinary not-found keeps the shape it always had. The same list is also
spelled out inside Self::message for humans; agents read it here
instead of splitting that sentence apart.
Trait Implementations§
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