#[non_exhaustive]pub enum DiagnosticValue {
Plain(String),
Sensitive(String),
}Expand description
Plain or sensitive diagnostic field value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Plain(String)
Non-sensitive text that presentation may show.
Sensitive(String)
Sensitive text that presentation and debug output must redact.
Implementations§
Source§impl DiagnosticValue
impl DiagnosticValue
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Returns whether the value is sensitive.
Trait Implementations§
Source§impl Clone for DiagnosticValue
impl Clone for DiagnosticValue
Source§fn clone(&self) -> DiagnosticValue
fn clone(&self) -> DiagnosticValue
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 DiagnosticValue
impl Debug for DiagnosticValue
impl Eq for DiagnosticValue
Source§impl PartialEq for DiagnosticValue
impl PartialEq for DiagnosticValue
impl StructuralPartialEq for DiagnosticValue
Auto Trait Implementations§
impl Freeze for DiagnosticValue
impl RefUnwindSafe for DiagnosticValue
impl Send for DiagnosticValue
impl Sync for DiagnosticValue
impl Unpin for DiagnosticValue
impl UnsafeUnpin for DiagnosticValue
impl UnwindSafe for DiagnosticValue
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