pub struct SignedMeterValue {
pub signed_meter_data: String,
pub signing_method: Option<String>,
pub encoding_method: String,
pub public_key: Option<String>,
pub custom_data: Option<CustomData>,
}Expand description
Represent a signed version of the meter value.
Fields§
§signed_meter_data: StringBase64 encoded, contains the signed data from the meter in the format specified in encodingMethod, which might contain more then just the meter value. It can contain information like timestamps, reference to a customer etc.
signing_method: Option<String>(2.1) Method used to create the digital signature. Optional, if already included in signedMeterData. Standard values for this are defined in Appendix as SigningMethodEnumStringType.
encoding_method: StringFormat used by the energy meter to encode the meter data. For example: OCMF or EDL.
public_key: Option<String>(2.1) Base64 encoded, sending depends on configuration variable PublicKeyWithSignedMeterValue.
custom_data: Option<CustomData>Trait Implementations§
Source§impl Clone for SignedMeterValue
impl Clone for SignedMeterValue
Source§impl Debug for SignedMeterValue
impl Debug for SignedMeterValue
Source§impl<'de> Deserialize<'de> for SignedMeterValue
impl<'de> Deserialize<'de> for SignedMeterValue
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 SignedMeterValue
impl PartialEq for SignedMeterValue
Source§impl Serialize for SignedMeterValue
impl Serialize for SignedMeterValue
impl StructuralPartialEq for SignedMeterValue
Auto Trait Implementations§
impl Freeze for SignedMeterValue
impl RefUnwindSafe for SignedMeterValue
impl Send for SignedMeterValue
impl Sync for SignedMeterValue
impl Unpin for SignedMeterValue
impl UnsafeUnpin for SignedMeterValue
impl UnwindSafe for SignedMeterValue
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