pub enum HealthComponentDetailValue {
Text(String),
Integer(i64),
Unsigned(u64),
Boolean(bool),
DurationMillis(u64),
}Expand description
Typed diagnostic value attached to a component detail.
Variants§
Text(String)
Human-facing text such as a backend, driver, region, or mode.
Integer(i64)
Signed integer value.
Unsigned(u64)
Unsigned counter or depth value.
Boolean(bool)
Boolean flag.
DurationMillis(u64)
Duration value in milliseconds for latency, age, lag, or timeout diagnostics.
Implementations§
Source§impl HealthComponentDetailValue
impl HealthComponentDetailValue
Sourcepub const fn value_type(&self) -> &'static str
pub const fn value_type(&self) -> &'static str
Returns the stable lowercase type name for product DTOs.
Sourcepub const fn as_integer(&self) -> Option<i64>
pub const fn as_integer(&self) -> Option<i64>
Returns the signed integer value when this detail stores one.
Sourcepub const fn as_unsigned(&self) -> Option<u64>
pub const fn as_unsigned(&self) -> Option<u64>
Returns the unsigned integer value when this detail stores one.
Sourcepub const fn as_boolean(&self) -> Option<bool>
pub const fn as_boolean(&self) -> Option<bool>
Returns the boolean value when this detail stores one.
Sourcepub const fn as_duration_millis(&self) -> Option<u64>
pub const fn as_duration_millis(&self) -> Option<u64>
Returns the duration value in milliseconds when this detail stores one.
Sourcepub fn display_value(&self) -> String
pub fn display_value(&self) -> String
Returns a stable human-facing display value.
Trait Implementations§
Source§impl Clone for HealthComponentDetailValue
impl Clone for HealthComponentDetailValue
Source§fn clone(&self) -> HealthComponentDetailValue
fn clone(&self) -> HealthComponentDetailValue
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 ComposeSchema for HealthComponentDetailValue
impl ComposeSchema for HealthComponentDetailValue
Source§impl Debug for HealthComponentDetailValue
impl Debug for HealthComponentDetailValue
Source§impl<'de> Deserialize<'de> for HealthComponentDetailValue
impl<'de> Deserialize<'de> for HealthComponentDetailValue
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 From<&str> for HealthComponentDetailValue
impl From<&str> for HealthComponentDetailValue
Source§impl From<Duration> for HealthComponentDetailValue
impl From<Duration> for HealthComponentDetailValue
Source§impl From<String> for HealthComponentDetailValue
impl From<String> for HealthComponentDetailValue
Source§impl From<bool> for HealthComponentDetailValue
impl From<bool> for HealthComponentDetailValue
Source§impl From<i64> for HealthComponentDetailValue
impl From<i64> for HealthComponentDetailValue
Source§impl From<u64> for HealthComponentDetailValue
impl From<u64> for HealthComponentDetailValue
Source§impl PartialEq for HealthComponentDetailValue
impl PartialEq for HealthComponentDetailValue
Source§fn eq(&self, other: &HealthComponentDetailValue) -> bool
fn eq(&self, other: &HealthComponentDetailValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToSchema for HealthComponentDetailValue
impl ToSchema for HealthComponentDetailValue
impl Eq for HealthComponentDetailValue
impl StructuralPartialEq for HealthComponentDetailValue
Auto Trait Implementations§
impl Freeze for HealthComponentDetailValue
impl RefUnwindSafe for HealthComponentDetailValue
impl Send for HealthComponentDetailValue
impl Sync for HealthComponentDetailValue
impl Unpin for HealthComponentDetailValue
impl UnsafeUnpin for HealthComponentDetailValue
impl UnwindSafe for HealthComponentDetailValue
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.