pub struct CanonicalMetricSourceV1 {
pub format_version: u16,
pub series_id: String,
pub point: MetricPointV1,
}Fields§
§format_version: u16§series_id: String§point: MetricPointV1Implementations§
Source§impl CanonicalMetricSourceV1
impl CanonicalMetricSourceV1
pub fn new( point: MetricPointV1, model: &IndexRecordModel, ) -> Result<Self, MetricRecordError>
pub fn validate( &self, model: &IndexRecordModel, ) -> Result<[u8; 32], MetricRecordError>
Trait Implementations§
Source§impl Clone for CanonicalMetricSourceV1
impl Clone for CanonicalMetricSourceV1
Source§impl Debug for CanonicalMetricSourceV1
impl Debug for CanonicalMetricSourceV1
Source§impl<'de> Deserialize<'de> for CanonicalMetricSourceV1
impl<'de> Deserialize<'de> for CanonicalMetricSourceV1
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
impl Eq for CanonicalMetricSourceV1
Source§impl PartialEq for CanonicalMetricSourceV1
impl PartialEq for CanonicalMetricSourceV1
Source§impl Serialize for CanonicalMetricSourceV1
impl Serialize for CanonicalMetricSourceV1
impl StructuralPartialEq for CanonicalMetricSourceV1
Auto Trait Implementations§
impl Freeze for CanonicalMetricSourceV1
impl RefUnwindSafe for CanonicalMetricSourceV1
impl Send for CanonicalMetricSourceV1
impl Sync for CanonicalMetricSourceV1
impl Unpin for CanonicalMetricSourceV1
impl UnsafeUnpin for CanonicalMetricSourceV1
impl UnwindSafe for CanonicalMetricSourceV1
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