pub struct SampledValue<CustomDataType = NoCustomData> {
pub context: Option<ReadingContextEnum>,
pub custom_data: Option<CustomDataType>,
pub location: Option<LocationEnum>,
pub measurand: Option<MeasurandEnum>,
pub phase: Option<PhaseEnum>,
pub signed_meter_value: Option<SignedMeterValue<CustomDataType>>,
pub unit_of_measure: Option<UnitOfMeasure<CustomDataType>>,
pub value: f64,
}Expand description
Sampled_ Value urn:x-oca:ocpp:uid:2:233266 Single sampled value in MeterValues. Each value can be accompanied by optional fields.
To save on mobile data usage, default values of all of the optional fields are such that. The value without any additional fields will be interpreted, as a register reading of active import energy in Wh (Watt-hour) units.
Fields§
§context: Option<ReadingContextEnum>§custom_data: Option<CustomDataType>§location: Option<LocationEnum>§measurand: Option<MeasurandEnum>§phase: Option<PhaseEnum>§signed_meter_value: Option<SignedMeterValue<CustomDataType>>§unit_of_measure: Option<UnitOfMeasure<CustomDataType>>§value: f64Sampled_ Value. Value. Measure urn:x-oca:ocpp:uid:1:569260 Indicates the measured value.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for SampledValue<CustomDataType>
impl<CustomDataType: Clone> Clone for SampledValue<CustomDataType>
Source§fn clone(&self) -> SampledValue<CustomDataType>
fn clone(&self) -> SampledValue<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 SampledValue<CustomDataType>
impl<CustomDataType: Debug> Debug for SampledValue<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for SampledValue<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for SampledValue<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 SampledValue<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for SampledValue<CustomDataType>
Source§impl<CustomDataType> Serialize for SampledValue<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for SampledValue<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for SampledValue<CustomDataType>
Source§impl<CustomDataType> Validate for SampledValue<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for SampledValue<CustomDataType>
Available on crate features
alloc and validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for SampledValue<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for SampledValue<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for SampledValue<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for SampledValue<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for SampledValue<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for SampledValue<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for SampledValue<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