pub struct ConfigNotice {
pub level: ConfigNoticeLevel,
pub field: String,
pub message: String,
}Expand description
One non-fatal resolve-time notice: a severity, the label of whatever the operator wrote, and the operator-facing message text.
field is the dotted config label (security.max_tracked_sources),
matching the problem-label convention so a notice and a problem about the
same field read the same way.
field is kept out of the message text, so a consumer can
render or filter on it independently of what it says.
Fields§
§level: ConfigNoticeLevelHow loud this notice is.
field: StringWhat the operator wrote: a dotted config label.
message: StringOperator-facing message text, without a severity prefix.
Trait Implementations§
Source§impl Clone for ConfigNotice
impl Clone for ConfigNotice
Auto Trait Implementations§
impl Freeze for ConfigNotice
impl RefUnwindSafe for ConfigNotice
impl Send for ConfigNotice
impl Sync for ConfigNotice
impl Unpin for ConfigNotice
impl UnsafeUnpin for ConfigNotice
impl UnwindSafe for ConfigNotice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more