pub enum MetricUnitId {
Observation(ObservationId),
Sample(SampleId),
Target(TargetId),
Group(GroupId),
}Variants§
Implementations§
Source§impl MetricUnitId
impl MetricUnitId
pub fn level(&self) -> PredictionLevel
Trait Implementations§
Source§impl Clone for MetricUnitId
impl Clone for MetricUnitId
Source§fn clone(&self) -> MetricUnitId
fn clone(&self) -> MetricUnitId
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 MetricUnitId
impl Debug for MetricUnitId
Source§impl<'de> Deserialize<'de> for MetricUnitId
impl<'de> Deserialize<'de> for MetricUnitId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetricUnitId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetricUnitId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MetricUnitId
Source§impl From<&PredictionUnitId> for MetricUnitId
impl From<&PredictionUnitId> for MetricUnitId
Source§fn from(value: &PredictionUnitId) -> MetricUnitId
fn from(value: &PredictionUnitId) -> MetricUnitId
Converts to this type from the input type.
Source§impl Ord for MetricUnitId
impl Ord for MetricUnitId
Source§fn cmp(&self, other: &MetricUnitId) -> Ordering
fn cmp(&self, other: &MetricUnitId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MetricUnitId
impl PartialEq for MetricUnitId
Source§impl PartialOrd for MetricUnitId
impl PartialOrd for MetricUnitId
Source§impl Serialize for MetricUnitId
impl Serialize for MetricUnitId
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
impl StructuralPartialEq for MetricUnitId
Auto Trait Implementations§
impl Freeze for MetricUnitId
impl RefUnwindSafe for MetricUnitId
impl Send for MetricUnitId
impl Sync for MetricUnitId
impl Unpin for MetricUnitId
impl UnsafeUnpin for MetricUnitId
impl UnwindSafe for MetricUnitId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.