#[non_exhaustive]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 resolution.
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.
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 UnsafeUnpin 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