pub enum ArgMismatch {
MissingInCommand {
cli_name: String,
rust_name: String,
expected_kind: ArgKind,
},
NotAFlag {
cli_name: String,
actual_action: String,
},
UnexpectedFlag {
cli_name: String,
expected_kind: ArgKind,
},
RequiredMismatch {
cli_name: String,
handler_required: bool,
command_required: bool,
},
}Expand description
A single mismatch between handler expectation and command definition.
Variants§
MissingInCommand
Handler expects an argument that doesn’t exist in the command.
NotAFlag
Handler expects a flag but command has a non-flag argument.
UnexpectedFlag
Handler expects a non-flag but command has a flag.
RequiredMismatch
Handler expects required but command has optional (or vice versa).
Trait Implementations§
Source§impl Clone for ArgMismatch
impl Clone for ArgMismatch
Source§fn clone(&self) -> ArgMismatch
fn clone(&self) -> ArgMismatch
Returns a duplicate of the value. Read more
1.0.0 · 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 ArgMismatch
impl Debug for ArgMismatch
Auto Trait Implementations§
impl Freeze for ArgMismatch
impl RefUnwindSafe for ArgMismatch
impl Send for ArgMismatch
impl Sync for ArgMismatch
impl Unpin for ArgMismatch
impl UnwindSafe for ArgMismatch
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