pub enum MatchResult {
Exact,
WithOptionalMissing(Vec<&'static str>),
NoMatch {
missing_required: Vec<&'static str>,
unknown: Vec<String>,
},
}Expand description
Result of matching input fields against a configuration.
Variants§
Exact
All required fields present, all fields known
WithOptionalMissing(Vec<&'static str>)
All required fields present, some optional fields missing
NoMatch
Does not match
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchResult
impl RefUnwindSafe for MatchResult
impl Send for MatchResult
impl Sync for MatchResult
impl Unpin for MatchResult
impl UnwindSafe for MatchResult
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