pub struct Explained {
pub code: String,
pub name: String,
pub class: Class,
pub exit_code: u8,
pub title: String,
pub help: String,
pub retired: bool,
pub page: Option<String>,
}Expand description
One code explained.
Fields§
§code: StringThe code (SH2003).
name: StringIts kebab-case name (missing-file), as stable as the code.
class: ClassIts class, which sets the exit code.
exit_code: u8The exit code of an error with it.
title: StringWhat went wrong, in a few words.
help: StringHow to fix it, in a line.
retired: boolWhether it is retired: no error gives it any more.
page: Option<String>Its page, in Markdown, when one code was asked for.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Explained
impl<'de> Deserialize<'de> for Explained
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 Explained
Source§impl JsonSchema for Explained
impl JsonSchema for Explained
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Explained
Auto Trait Implementations§
impl Freeze for Explained
impl RefUnwindSafe for Explained
impl Send for Explained
impl Sync for Explained
impl Unpin for Explained
impl UnsafeUnpin for Explained
impl UnwindSafe for Explained
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.