pub struct ErrorVariant {
pub status: u16,
pub code: &'static str,
pub description: &'static str,
}Expand description
Metadata about an error variant for OpenAPI documentation.
Fields§
§status: u16HTTP status code (e.g., 404, 409).
code: &'static strMachine-readable error code (e.g., “NOT_FOUND”).
description: &'static strHuman-readable description for documentation.
Trait Implementations§
Source§impl Clone for ErrorVariant
impl Clone for ErrorVariant
Source§fn clone(&self) -> ErrorVariant
fn clone(&self) -> ErrorVariant
Returns a duplicate of the value. Read more
1.0.0 · 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 ErrorVariant
impl Debug for ErrorVariant
Source§impl PartialEq for ErrorVariant
impl PartialEq for ErrorVariant
Source§impl Serialize for ErrorVariant
impl Serialize for ErrorVariant
impl StructuralPartialEq for ErrorVariant
Auto Trait Implementations§
impl Freeze for ErrorVariant
impl RefUnwindSafe for ErrorVariant
impl Send for ErrorVariant
impl Sync for ErrorVariant
impl Unpin for ErrorVariant
impl UnsafeUnpin for ErrorVariant
impl UnwindSafe for ErrorVariant
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