pub struct ItemError<C = NoErrorCode> {
pub id: Option<String>,
pub code: Option<C>,
pub error: String,
pub sources: Vec<String>,
}Available on crate feature
terminal only.Expand description
The error of one item a command could not list or act on.
Fields§
§id: Option<String>The item’s id as the command prints ids, null when unknown.
code: Option<C>The stable code of the failure, null when none was given.
error: StringThe outermost error message.
sources: Vec<String>The messages of the causes, outermost first.
Implementations§
Trait Implementations§
Source§impl<C> JsonSchema for ItemError<C>where
C: JsonSchema,
impl<C> JsonSchema for ItemError<C>where
C: JsonSchema,
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 moreAuto Trait Implementations§
impl<C> Forget for ItemError<C>
impl<C> Freeze for ItemError<C>
impl<C> Move for ItemError<C>
impl<C> RefUnwindSafe for ItemError<C>where
Option<C>: RefUnwindSafe,
impl<C> Send for ItemError<C>
impl<C> Sync for ItemError<C>
impl<C> Unpin for ItemError<C>
impl<C> UnsafeUnpin for ItemError<C>where
Option<C>: UnsafeUnpin,
impl<C> UnwindSafe for ItemError<C>where
Option<C>: UnwindSafe,
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