pub struct Diag {
pub field: String,
pub level: DiagLevel,
pub msg: String,
}Expand description
A reload diagnostic. Warn is advisory (a restart-only field
merely present in the file — it works, it just pins you to restart-to-change);
Error is fatal to the reload (it differs on a live reload, or the reloadable
subset is internally inconsistent). --validate-config reports both; the
reload path aborts on any Error.
Fields§
§field: StringThe config field/path the diagnostic is about (e.g. mode, mcp_servers).
level: DiagLevelwarn (advisory) or error (fatal to the reload).
msg: StringThe human-readable reason.
Implementations§
Trait Implementations§
impl Eq for Diag
impl StructuralPartialEq for Diag
Auto Trait Implementations§
impl Freeze for Diag
impl RefUnwindSafe for Diag
impl Send for Diag
impl Sync for Diag
impl Unpin for Diag
impl UnsafeUnpin for Diag
impl UnwindSafe for Diag
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