#[non_exhaustive]pub enum WarningKind {
UnknownSetting,
WrongType,
NotAllowed,
OutOfScope,
Deprecated,
Removed,
Renamed,
NotRead,
Other,
}Expand description
The kinds of thing a resolution has to say.
The message is for a person and its wording is nobody’s contract; this is what a program can
act on. mise wants its deprecations queued and printed once its logging is up while a bad value
goes to stderr immediately; a --strict mode wants to exit on anything but a deprecation; the
conformance corpus wants to pin what happened without pinning how it was worded, since that is a
quality-of-implementation concern and differs between implementations by design.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownSetting
A key no setting declares. A config file written for a newer binary read by an older one.
WrongType
A value the declared type cannot read.
NotAllowed
A value the declared choice nodes do not allow.
OutOfScope
A place that may not set this setting: a scope="global" setting from a checkout.
Deprecated
A setting whose spec says not to use it any more.
Removed
A configured value for a setting whose removal milestone has been reached, and which was therefore ignored.
Renamed
A value that arrived under an old name and was read as the setting that replaced it.
NotRead
A value that was passed over because another name for the same setting won.
Other
Something a layer of the CLI’s own says, which this crate has no name for.
Trait Implementations§
Source§impl Clone for WarningKind
impl Clone for WarningKind
Source§fn clone(&self) -> WarningKind
fn clone(&self) -> WarningKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more