pub struct PluginMeasurement {
pub name: String,
pub value: f64,
pub unit: String,
pub attributes: BTreeMap<String, String>,
}Fields§
§name: String§value: f64§unit: String§attributes: BTreeMap<String, String>Implementations§
Source§impl PluginMeasurement
impl PluginMeasurement
pub fn validate(&self) -> Result<(), PluginProtocolViolation>
Trait Implementations§
Source§impl Clone for PluginMeasurement
impl Clone for PluginMeasurement
Source§fn clone(&self) -> PluginMeasurement
fn clone(&self) -> PluginMeasurement
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 PluginMeasurement
impl Debug for PluginMeasurement
Source§impl<'de> Deserialize<'de> for PluginMeasurement
impl<'de> Deserialize<'de> for PluginMeasurement
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 PartialEq for PluginMeasurement
impl PartialEq for PluginMeasurement
Source§impl Serialize for PluginMeasurement
impl Serialize for PluginMeasurement
impl StructuralPartialEq for PluginMeasurement
Auto Trait Implementations§
impl Freeze for PluginMeasurement
impl RefUnwindSafe for PluginMeasurement
impl Send for PluginMeasurement
impl Sync for PluginMeasurement
impl Unpin for PluginMeasurement
impl UnsafeUnpin for PluginMeasurement
impl UnwindSafe for PluginMeasurement
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