pub struct CandidateFailure {
pub variant_name: String,
pub missing_fields: Vec<MissingFieldInfo>,
pub unknown_fields: Vec<String>,
pub suggestion_matches: usize,
}Expand description
Information about why a specific candidate (resolution) failed to match.
Fields§
§variant_name: StringHuman-readable description of the variant (e.g., “DatabaseBackend::Postgres”)
missing_fields: Vec<MissingFieldInfo>Required fields that were not provided in the input
unknown_fields: Vec<String>Fields in the input that don’t exist in this candidate
suggestion_matches: usizeNumber of unknown fields that have “did you mean?” suggestions for this candidate Higher = more likely the user intended this variant
Trait Implementations§
Source§impl Clone for CandidateFailure
impl Clone for CandidateFailure
Source§fn clone(&self) -> CandidateFailure
fn clone(&self) -> CandidateFailure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CandidateFailure
impl RefUnwindSafe for CandidateFailure
impl Send for CandidateFailure
impl Sync for CandidateFailure
impl Unpin for CandidateFailure
impl UnwindSafe for CandidateFailure
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