pub struct HttpErrorBody {
pub code: String,
pub message: String,
pub diagnostic_id: Option<String>,
}Expand description
Serializer-neutral safe error response body.
Fields§
§code: StringStable machine-readable error code.
message: StringSafe application-facing message without technical source details.
diagnostic_id: Option<String>Optional identifier correlating the response with diagnostics.
Trait Implementations§
Source§impl Clone for HttpErrorBody
impl Clone for HttpErrorBody
Source§fn clone(&self) -> HttpErrorBody
fn clone(&self) -> HttpErrorBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpErrorBody
impl Debug for HttpErrorBody
impl Eq for HttpErrorBody
Source§impl PartialEq for HttpErrorBody
impl PartialEq for HttpErrorBody
impl StructuralPartialEq for HttpErrorBody
Auto Trait Implementations§
impl Freeze for HttpErrorBody
impl RefUnwindSafe for HttpErrorBody
impl Send for HttpErrorBody
impl Sync for HttpErrorBody
impl Unpin for HttpErrorBody
impl UnsafeUnpin for HttpErrorBody
impl UnwindSafe for HttpErrorBody
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