pub struct Diagnostic<'a> {
pub level: DiagnosticLevel,
pub message: &'a str,
pub file: Option<&'a Path>,
pub line: Option<NonZeroUsize>,
}Expand description
Diagnostic message (e.g., a warning or error) from the config loading process.
Fields§
§level: DiagnosticLevelThe severity of the diagnostic.
message: &'a strThe diagnostic message. Example: Unused Field: "data"
file: Option<&'a Path>The configuration file where the issue was found.
line: Option<NonZeroUsize>The line number in the file where the issue occurred.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Diagnostic<'a>
impl<'a> RefUnwindSafe for Diagnostic<'a>
impl<'a> Send for Diagnostic<'a>
impl<'a> Sync for Diagnostic<'a>
impl<'a> Unpin for Diagnostic<'a>
impl<'a> UnsafeUnpin for Diagnostic<'a>
impl<'a> UnwindSafe for Diagnostic<'a>
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