pub enum MeasurementData {
Generic(Value),
PreFormatted(String),
FullLine(String),
}Expand description
Protocol-specific measurement data
Variants§
Generic(Value)
Structured data (serialized via serde_json::Value)
PreFormatted(String)
Pre-formatted “result” field value matching exact C probe output. Used when precise formatting (e.g., float decimal places) matters.
FullLine(String)
Complete pre-formatted RESULT line body (everything inside RESULT { ... }). Used for measurement types (TLS, NTP) that have non-standard
envelope layouts.
Trait Implementations§
Source§impl Clone for MeasurementData
impl Clone for MeasurementData
Source§fn clone(&self) -> MeasurementData
fn clone(&self) -> MeasurementData
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 MeasurementData
impl Debug for MeasurementData
Source§impl<'de> Deserialize<'de> for MeasurementData
impl<'de> Deserialize<'de> for MeasurementData
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
Auto Trait Implementations§
impl Freeze for MeasurementData
impl RefUnwindSafe for MeasurementData
impl Send for MeasurementData
impl Sync for MeasurementData
impl Unpin for MeasurementData
impl UnwindSafe for MeasurementData
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