pub struct ErrorCatalog {
pub schema_version: String,
pub api_version: String,
pub categories: Vec<ErrorCategoryEntry>,
pub errors: Vec<ErrorCodeEntry>,
}Expand description
Complete error catalog for machine consumption.
Fields§
§schema_version: StringSchema version for catalog format.
api_version: StringAPI version this catalog applies to.
categories: Vec<ErrorCategoryEntry>Error categories with descriptions.
errors: Vec<ErrorCodeEntry>All error codes with full metadata.
Trait Implementations§
Source§impl Clone for ErrorCatalog
impl Clone for ErrorCatalog
Source§fn clone(&self) -> ErrorCatalog
fn clone(&self) -> ErrorCatalog
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 ErrorCatalog
impl Debug for ErrorCatalog
Source§impl<'de> Deserialize<'de> for ErrorCatalog
impl<'de> Deserialize<'de> for ErrorCatalog
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
Auto Trait Implementations§
impl Freeze for ErrorCatalog
impl RefUnwindSafe for ErrorCatalog
impl Send for ErrorCatalog
impl Sync for ErrorCatalog
impl Unpin for ErrorCatalog
impl UnsafeUnpin for ErrorCatalog
impl UnwindSafe for ErrorCatalog
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