pub enum SolverError {
NoMatch {
input_fields: Vec<String>,
missing_required: Vec<&'static str>,
missing_required_detailed: Vec<MissingFieldInfo>,
unknown_fields: Vec<String>,
closest_config: Option<String>,
},
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
Ambiguous
Multiple configurations match the input fields
Trait Implementations§
Source§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