Struct NonDefault
pub struct NonDefault {
pub setting: String,
pub value: Shown,
pub default: Shown,
}Expand description
A setting whose value differs from its default, as plain data for the caller to show or log.
A non-default setting is never refused for it; it is listed, and the application that knows the use case decides what it means.
Fields§
§setting: StringThe setting’s key, as a path (max_message, waiting.per_source).
value: ShownIts value, shown as a [Shown] (u16(16), unset, String(***)).
default: ShownThe default, shown the same way.
Implementations§
§impl NonDefault
impl NonDefault
pub fn new(
setting: impl Into<String>,
value: Shown,
default: Shown,
) -> NonDefault
pub fn new( setting: impl Into<String>, value: Shown, default: Shown, ) -> NonDefault
A non-default setting, now value, against default.
Trait Implementations§
§impl Clone for NonDefault
impl Clone for NonDefault
§fn clone(&self) -> NonDefault
fn clone(&self) -> NonDefault
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 more§impl Debug for NonDefault
impl Debug for NonDefault
§impl Display for NonDefault
impl Display for NonDefault
impl Eq for NonDefault
§impl From<&Finding> for NonDefault
impl From<&Finding> for NonDefault
§fn from(finding: &Finding) -> NonDefault
fn from(finding: &Finding) -> NonDefault
The finding as data. A default that was expected is shown with the type name of the
value found (String where there is none): [non_defaults] knows the exact type.
§impl PartialEq for NonDefault
impl PartialEq for NonDefault
impl StructuralPartialEq for NonDefault
Auto Trait Implementations§
impl Freeze for NonDefault
impl RefUnwindSafe for NonDefault
impl Send for NonDefault
impl Sync for NonDefault
impl Unpin for NonDefault
impl UnsafeUnpin for NonDefault
impl UnwindSafe for NonDefault
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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