pub struct CodeInfo {
pub code: String,
pub kind: Kind,
pub status: CommandStatus,
pub exit_code: u8,
pub title: String,
pub explain: String,
pub fix: Vec<String>,
pub docs: String,
}Expand description
One code, as explain shows it.
Fields§
§code: StringNEEDS-APPROVAL.
kind: KindError, stop or warning.
status: CommandStatusThe status results with this code have.
exit_code: u8Its exit code.
title: StringOne line.
explain: StringWhat it means and why it happens.
fix: Vec<String>How to resolve it (templates: <task>, <feature> are blanks).
docs: StringIts section on the codes page.
Implementations§
Trait Implementations§
impl Eq for CodeInfo
Source§impl JsonSchema for CodeInfo
impl JsonSchema for CodeInfo
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 CodeInfo
Auto Trait Implementations§
impl Freeze for CodeInfo
impl RefUnwindSafe for CodeInfo
impl Send for CodeInfo
impl Sync for CodeInfo
impl Unpin for CodeInfo
impl UnsafeUnpin for CodeInfo
impl UnwindSafe for CodeInfo
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