pub enum SolverError {
NoMatch {
input_fields: Vec<String>,
missing_required: Vec<&'static str>,
missing_required_detailed: Vec<MissingFieldInfo>,
unknown_fields: Vec<String>,
closest_resolution: Option<String>,
candidate_failures: Vec<CandidateFailure>,
suggestions: Vec<FieldSuggestion>,
},
Ambiguous {
candidates: Vec<String>,
disambiguating_fields: Vec<String>,
},
}Expand description
Errors that can occur during flatten resolution.
Variants§
NoMatch
No configuration matches the input fields
Fields
§
missing_required: Vec<&'static str>Missing required fields (from the closest matching config) - simple names for backwards compat
§
missing_required_detailed: Vec<MissingFieldInfo>Missing required fields with full path information
§
candidate_failures: Vec<CandidateFailure>Why each candidate failed to match (detailed per-candidate info)
§
suggestions: Vec<FieldSuggestion>“Did you mean?” suggestions for unknown fields
Ambiguous
Multiple resolutions match the input fields
Trait Implementations§
Source§impl Clone for SolverError
impl Clone for SolverError
Source§fn clone(&self) -> SolverError
fn clone(&self) -> SolverError
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 moreSource§impl Debug for SolverError
impl Debug for SolverError
Source§impl Display for SolverError
impl Display for SolverError
Source§impl Error for SolverError
Available on crate feature std only.
impl Error for SolverError
Available on crate feature
std only.1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SolverError
impl RefUnwindSafe for SolverError
impl Send for SolverError
impl Sync for SolverError
impl Unpin for SolverError
impl UnwindSafe for SolverError
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