Struct argh_shared::ErrorCodeInfo
source · pub struct ErrorCodeInfo<'a> {
pub code: i32,
pub description: &'a str,
}
Expand description
Information about a documented error code.
Fields§
§code: i32
The code value.
description: &'a str
Short description about what this code indicates.
Trait Implementations§
source§impl<'a> Debug for ErrorCodeInfo<'a>
impl<'a> Debug for ErrorCodeInfo<'a>
source§impl<'a> PartialEq<ErrorCodeInfo<'a>> for ErrorCodeInfo<'a>
impl<'a> PartialEq<ErrorCodeInfo<'a>> for ErrorCodeInfo<'a>
source§fn eq(&self, other: &ErrorCodeInfo<'a>) -> bool
fn eq(&self, other: &ErrorCodeInfo<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for ErrorCodeInfo<'a>
impl<'a> Serialize for ErrorCodeInfo<'a>
impl<'a> Eq for ErrorCodeInfo<'a>
impl<'a> StructuralEq for ErrorCodeInfo<'a>
impl<'a> StructuralPartialEq for ErrorCodeInfo<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ErrorCodeInfo<'a>
impl<'a> Send for ErrorCodeInfo<'a>
impl<'a> Sync for ErrorCodeInfo<'a>
impl<'a> Unpin for ErrorCodeInfo<'a>
impl<'a> UnwindSafe for ErrorCodeInfo<'a>
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