pub struct ErrorInfo {
pub code: ErrorCode,
pub category: ErrorCategory,
pub retryable: bool,
pub message: String,
pub details: Option<Value>,
}Expand description
Structured error info (canonical-JSON compatible; MUST NOT contain secrets).
Fields§
§code: ErrorCodeStable machine-readable error code.
category: ErrorCategoryHigh-level category for policy decisions and display.
retryable: boolWhether the operation may be retried safely.
message: StringHuman-readable message safe to persist and display.
details: Option<Value>Optional structured details that must remain secret-free.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorInfo
impl<'de> Deserialize<'de> for ErrorInfo
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
impl Eq for ErrorInfo
impl StructuralPartialEq for ErrorInfo
Auto Trait Implementations§
impl Freeze for ErrorInfo
impl RefUnwindSafe for ErrorInfo
impl Send for ErrorInfo
impl Sync for ErrorInfo
impl Unpin for ErrorInfo
impl UnsafeUnpin for ErrorInfo
impl UnwindSafe for ErrorInfo
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