pub struct SignedMeterValue {
pub custom_data: Option<CustomData>,
pub signed_meter_data: String,
pub signing_method: String,
pub encoding_method: String,
pub public_key: String,
}Expand description
Represent a signed version of the meter value.
Fields§
§custom_data: Option<CustomData>§signed_meter_data: StringBase64 encoded, contains the signed data which might contain more then just the meter value. It can contain information like timestamps, reference to a customer etc.
signing_method: StringMethod used to create the digital signature.
encoding_method: StringMethod used to encode the meter values before applying the digital signature algorithm.
public_key: StringBase64 encoded, sending depends on configuration variable PublicKeyWithSignedMeterValue.
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