#[non_exhaustive]pub enum WarningKind {
Conflict {
key: String,
kept: String,
ignored: String,
},
DuplicateOriginal {
original: String,
kept: String,
ignored: String,
},
Rejected(MappingError),
}Expand description
Why a mapping file entry was skipped.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Conflict
The same DEX name was given a second, different name; the first wins.
DuplicateOriginal
Two DEX classes claim one original name; member types written with it translate to the first.
Fields
Rejected(MappingError)
A name NameMappings refuses.
Trait Implementations§
Source§impl Clone for WarningKind
impl Clone for WarningKind
Source§impl Debug for WarningKind
impl Debug for WarningKind
Source§impl Display for WarningKind
impl Display for WarningKind
impl Eq for WarningKind
Source§impl Error for WarningKind
impl Error for WarningKind
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<MappingError> for WarningKind
impl From<MappingError> for WarningKind
Source§fn from(source: MappingError) -> Self
fn from(source: MappingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WarningKind
impl PartialEq for WarningKind
impl StructuralPartialEq for WarningKind
Auto Trait Implementations§
impl Forget for WarningKind
impl Freeze for WarningKind
impl Move for WarningKind
impl RefUnwindSafe for WarningKind
impl Send for WarningKind
impl Sync for WarningKind
impl Unpin for WarningKind
impl UnsafeUnpin for WarningKind
impl UnwindSafe for WarningKind
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