pub struct SampledValue {
pub context: Option<ReadingContextEnum>,
pub custom_data: Option<CustomData>,
pub location: Option<LocationEnum>,
pub measurand: Option<MeasurandEnum>,
pub phase: Option<PhaseEnum>,
pub signed_meter_value: Option<SignedMeterValue>,
pub unit_of_measure: Option<UnitOfMeasure>,
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<CustomData>§location: Option<LocationEnum>§measurand: Option<MeasurandEnum>§phase: Option<PhaseEnum>§signed_meter_value: Option<SignedMeterValue>§unit_of_measure: Option<UnitOfMeasure>§value: f64Sampled_ Value. Value. Measure urn:x-oca:ocpp:uid:1:569260 Indicates the measured value.
Trait Implementations§
Source§impl Clone for SampledValue
impl Clone for SampledValue
Source§fn clone(&self) -> SampledValue
fn clone(&self) -> SampledValue
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 SampledValue
impl Debug for SampledValue
Source§impl PartialEq for SampledValue
impl PartialEq for SampledValue
impl StructuralPartialEq for SampledValue
Auto Trait Implementations§
impl Freeze for SampledValue
impl RefUnwindSafe for SampledValue
impl Send for SampledValue
impl Sync for SampledValue
impl Unpin for SampledValue
impl UnsafeUnpin for SampledValue
impl UnwindSafe for SampledValue
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