pub struct SignedMeterValue<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub encoding_method: String<50usize>,
pub public_key: String,
pub signed_meter_data: String,
pub signing_method: String<50usize>,
}Expand description
Represent a signed version of the meter value.
Fields§
§custom_data: Option<CustomDataType>§encoding_method: String<50usize>Method used to encode the meter values before applying the digital signature algorithm.
public_key: StringBase64 encoded, sending depends on configuration variable PublicKeyWithSignedMeterValue.
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: String<50usize>Method used to create the digital signature.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for SignedMeterValue<CustomDataType>
impl<CustomDataType: Clone> Clone for SignedMeterValue<CustomDataType>
Source§fn clone(&self) -> SignedMeterValue<CustomDataType>
fn clone(&self) -> SignedMeterValue<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 SignedMeterValue<CustomDataType>
impl<CustomDataType: Debug> Debug for SignedMeterValue<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for SignedMeterValue<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for SignedMeterValue<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
impl<CustomDataType: Eq> Eq for SignedMeterValue<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for SignedMeterValue<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for SignedMeterValue<CustomDataType>
Source§impl<CustomDataType> Serialize for SignedMeterValue<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for SignedMeterValue<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for SignedMeterValue<CustomDataType>
Source§impl<CustomDataType> Validate for SignedMeterValue<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for SignedMeterValue<CustomDataType>
Available on crate features
alloc and validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for SignedMeterValue<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for SignedMeterValue<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for SignedMeterValue<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for SignedMeterValue<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for SignedMeterValue<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for SignedMeterValue<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for SignedMeterValue<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