pub struct ExitCodeSpec {
pub code: u8,
pub meaning: String,
}Expand description
One exit code a CLI defines for itself, beyond AFDATA’s 0/1/2.
Fields§
§code: u8§meaning: StringWhat the code means to a caller, as one table cell.
Trait Implementations§
Source§impl Clone for ExitCodeSpec
impl Clone for ExitCodeSpec
Source§fn clone(&self) -> ExitCodeSpec
fn clone(&self) -> ExitCodeSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExitCodeSpec
impl Debug for ExitCodeSpec
Source§impl<'de> Deserialize<'de> for ExitCodeSpec
impl<'de> Deserialize<'de> for ExitCodeSpec
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
Source§impl PartialEq for ExitCodeSpec
impl PartialEq for ExitCodeSpec
Source§impl Serialize for ExitCodeSpec
impl Serialize for ExitCodeSpec
impl StructuralPartialEq for ExitCodeSpec
Auto Trait Implementations§
impl Freeze for ExitCodeSpec
impl RefUnwindSafe for ExitCodeSpec
impl Send for ExitCodeSpec
impl Sync for ExitCodeSpec
impl Unpin for ExitCodeSpec
impl UnsafeUnpin for ExitCodeSpec
impl UnwindSafe for ExitCodeSpec
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