pub struct ErrorBody {
pub code: &'static str,
pub message: String,
pub endpoint: Option<String>,
pub hint: Option<String>,
}Expand description
LOCKED error body: code (stable slug), message (human-readable),
endpoint (when a request was involved), hint (actionable next step).
Fields§
§code: &'static strStable slug from CoreError::code — never respelled.
message: StringHuman-readable description.
endpoint: Option<String>URL/path when a request was involved.
hint: Option<String>Actionable next step.
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