pub struct MeterValue<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub sampled_value: Vec<SampledValue<CustomDataType>>,
pub timestamp: OcppTimestamp,
}Expand description
Collection of one or more sampled values in MeterValuesRequest and TransactionEvent. All sampled values in a MeterValue are sampled at the same point in time.
Fields§
§custom_data: Option<CustomDataType>§sampled_value: Vec<SampledValue<CustomDataType>>§timestamp: OcppTimestampTimestamp for measured value(s).
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for MeterValue<CustomDataType>
impl<CustomDataType: Clone> Clone for MeterValue<CustomDataType>
Source§fn clone(&self) -> MeterValue<CustomDataType>
fn clone(&self) -> MeterValue<CustomDataType>
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<CustomDataType: Debug> Debug for MeterValue<CustomDataType>
impl<CustomDataType: Debug> Debug for MeterValue<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for MeterValue<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for MeterValue<CustomDataType>where
CustomDataType: Deserialize<'de>,
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<CustomDataType: PartialEq> PartialEq for MeterValue<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for MeterValue<CustomDataType>
Source§impl<CustomDataType> Serialize for MeterValue<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for MeterValue<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for MeterValue<CustomDataType>
Source§impl<CustomDataType> Validate for MeterValue<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for MeterValue<CustomDataType>
Available on crate features
alloc and validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for MeterValue<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for MeterValue<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for MeterValue<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for MeterValue<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for MeterValue<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for MeterValue<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for MeterValue<CustomDataType>where
CustomDataType: UnwindSafe,
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