pub struct Diagnostic {
pub text: RulesText,
pub line: usize,
pub field: Option<String>,
pub error: FieldError,
}Expand description
One problem with the value of ENV_VAR or the file FILE_ENV_VAR
names: the text and the line, the field as it was written, if the problem
is with one, and what is wrong.
Its Display form is the warning compatdb.so logs, for
example WINE_COMPATDB line 2: ignoring unknown key "bogus", or
WINE_COMPATDB_FILE line 2: ... for the file, which also says what
Table::parse_lenient or Table::parse_file_lenient did about it.
Fields§
§text: RulesTextThe text the line is in.
line: usizeThe line, counted from 1, blank lines and a legacy header included.
field: Option<String>The field as it was written, or None for a problem with the whole
line.
error: FieldErrorWhat is wrong.
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§fn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Diagnostic
impl Debug for Diagnostic
Source§impl Display for Diagnostic
impl Display for Diagnostic
impl Eq for Diagnostic
Source§impl Error for Diagnostic
impl Error for Diagnostic
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()
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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