pub struct MetaMetric {
pub name: Option<String>,
pub description: Option<String>,
pub range: Option<String>,
pub interpretation: Option<String>,
}Expand description
Single-metric definition inside Meta::metrics.
Fields§
§name: Option<String>Human-readable metric name.
description: Option<String>What this metric measures and how it is computed.
range: Option<String>Valid value range (e.g., "[0, 100]").
interpretation: Option<String>How to read the value (e.g., "lower is better").
Trait Implementations§
Source§impl Clone for MetaMetric
impl Clone for MetaMetric
Source§fn clone(&self) -> MetaMetric
fn clone(&self) -> MetaMetric
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 MetaMetric
impl Debug for MetaMetric
Source§impl Default for MetaMetric
impl Default for MetaMetric
Source§fn default() -> MetaMetric
fn default() -> MetaMetric
Returns the “default value” for a type. Read more
Source§impl JsonSchema for MetaMetric
impl JsonSchema for MetaMetric
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for MetaMetric
impl Serialize for MetaMetric
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MetaMetric
impl RefUnwindSafe for MetaMetric
impl Send for MetaMetric
impl Sync for MetaMetric
impl Unpin for MetaMetric
impl UnsafeUnpin for MetaMetric
impl UnwindSafe for MetaMetric
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