pub enum ValidationErrorType {
MissingRequiredArgument,
MissingRequiredOption,
UnknownOption,
OptionMissingArgument,
OptionUnexpectedArgument,
InvalidArgumentType,
UnknownSubcommand,
TooManyArguments,
TooFewArguments,
}Expand description
Types of validation errors.
Variants§
MissingRequiredArgument
Required argument is missing.
MissingRequiredOption
Required option is missing.
UnknownOption
Unknown option provided.
OptionMissingArgument
Option requires an argument but none provided.
OptionUnexpectedArgument
Option provided but doesn’t take an argument.
InvalidArgumentType
Invalid argument type (e.g., number expected but string provided).
UnknownSubcommand
Unknown subcommand.
TooManyArguments
Too many arguments provided (non-variadic argument limit exceeded).
TooFewArguments
Too few arguments provided.
Trait Implementations§
Source§impl Clone for ValidationErrorType
impl Clone for ValidationErrorType
Source§fn clone(&self) -> ValidationErrorType
fn clone(&self) -> ValidationErrorType
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 ValidationErrorType
impl Debug for ValidationErrorType
Auto Trait Implementations§
impl Freeze for ValidationErrorType
impl RefUnwindSafe for ValidationErrorType
impl Send for ValidationErrorType
impl Sync for ValidationErrorType
impl Unpin for ValidationErrorType
impl UnwindSafe for ValidationErrorType
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