pub struct DiagnosticMessage {
pub info: Option<LocalizedString>,
pub metric: Option<LocalizedString>,
pub metric_specific: Option<bool>,
pub severity: Option<String>,
pub short_message: Option<LocalizedString>,
}
Expand description
A message representing the key visualizer diagnostic messages.
This type is not used in any activity, and only used as part of another schema.
Fields§
§info: Option<LocalizedString>
Information about this diagnostic information.
metric: Option<LocalizedString>
The metric.
metric_specific: Option<bool>
Whether this message is specific only for the current metric. By default Diagnostics are shown for all metrics, regardless which metric is the currently selected metric in the UI. However occasionally a metric will generate so many messages that the resulting visual clutter becomes overwhelming. In this case setting this to true, will show the diagnostic messages for that metric only if it is the currently selected metric.
severity: Option<String>
The severity of the diagnostic message.
short_message: Option<LocalizedString>
The short message.
Trait Implementations§
Source§impl Clone for DiagnosticMessage
impl Clone for DiagnosticMessage
Source§fn clone(&self) -> DiagnosticMessage
fn clone(&self) -> DiagnosticMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 DiagnosticMessage
impl Debug for DiagnosticMessage
Source§impl Default for DiagnosticMessage
impl Default for DiagnosticMessage
Source§fn default() -> DiagnosticMessage
fn default() -> DiagnosticMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiagnosticMessage
impl<'de> Deserialize<'de> for DiagnosticMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DiagnosticMessage
impl Serialize for DiagnosticMessage
impl Part for DiagnosticMessage
Auto Trait Implementations§
impl Freeze for DiagnosticMessage
impl RefUnwindSafe for DiagnosticMessage
impl Send for DiagnosticMessage
impl Sync for DiagnosticMessage
impl Unpin for DiagnosticMessage
impl UnwindSafe for DiagnosticMessage
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