#[non_exhaustive]pub struct ErrorCodeInfo {
pub code: &'static str,
pub args: &'static [&'static str],
}Expand description
One error code of a command (decided by the package; crate::CommandError::with_code).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: &'static strThe stable English name, in the form package.error_name.
args: &'static [&'static str]Argument names.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorCodeInfo
impl Clone for ErrorCodeInfo
impl Copy for ErrorCodeInfo
Source§impl Debug for ErrorCodeInfo
impl Debug for ErrorCodeInfo
impl Eq for ErrorCodeInfo
Source§impl PartialEq for ErrorCodeInfo
impl PartialEq for ErrorCodeInfo
impl StructuralPartialEq for ErrorCodeInfo
Auto Trait Implementations§
impl Forget for ErrorCodeInfo
impl Freeze for ErrorCodeInfo
impl Move for ErrorCodeInfo
impl RefUnwindSafe for ErrorCodeInfo
impl Send for ErrorCodeInfo
impl Sync for ErrorCodeInfo
impl Unpin for ErrorCodeInfo
impl UnsafeUnpin for ErrorCodeInfo
impl UnwindSafe for ErrorCodeInfo
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