pub enum Finding {
UnknownArg {
arg: String,
did_you_mean: Option<String>,
},
UnknownEnv {
name: String,
did_you_mean: String,
},
MissingValue {
arg: String,
},
UnexpectedValue {
arg: String,
},
InvalidValue {
key: String,
source: Source,
value: String,
reason: String,
},
UnknownToken {
key: String,
token: String,
allowed: Vec<String>,
},
MissingRequired {
key: String,
via: Vec<String>,
},
Deprecated {
key: String,
guidance: String,
},
}Expand description
Something wrong with an invocation, relative to the declared contract.
Variants§
UnknownArg
A flag was given that no input declares.
Fields
UnknownEnv
A variable is set that no input declares, but which closely resembles one that exists.
Only near-misses are reported: an environment holds hundreds of unrelated
variables, and a checker that mentions PATH is a checker nobody runs.
Fields
MissingValue
A flag that takes a value was given none.
UnexpectedValue
A flag that takes no value was given one.
InvalidValue
A declared input received a value outside its domain.
Fields
UnknownToken
A token in a list value is not among the declared tokens.
Fields
MissingRequired
A required input was not supplied and has no default.
Deprecated
A deprecated input is in use.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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