pub struct SignedData {
pub encoding_method: CiString<36>,
pub encoding_method_version: Option<i32>,
pub public_key: Option<OcpiString<512>>,
pub signed_values: Vec<SignedValue>,
pub url: Option<Url>,
pub extensions: Extensions,
}Available on crate feature
v2_3_0 only.Expand description
Signed metering data, for German Eichrecht and comparable regimes.
Spec: 2.3.0 §mod_cdrs_signed_data_class
Fields§
§encoding_method: CiString<36>The name of the encoding used, as given by a company or group of companies.
Known implementations include OCMF, Alfen Eichrecht, EDL40 E-Mobility Extension and
EDL40 Mennekes.
encoding_method_version: Option<i32>Version of the encoding method, when applicable.
public_key: Option<OcpiString<512>>Public key used to sign the data, base64 encoded.
signed_values: Vec<SignedValue>One or more signed values. Cardinality +.
url: Option<Url>URL where an EV driver can check the signed data of a charging session.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Source§impl SignedData
impl SignedData
Sourcepub fn builder() -> SignedDataBuilder
pub fn builder() -> SignedDataBuilder
Create an instance of SignedData using the builder syntax
Trait Implementations§
Source§impl Clone for SignedData
impl Clone for SignedData
Source§fn clone(&self) -> SignedData
fn clone(&self) -> SignedData
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 SignedData
impl Debug for SignedData
Source§impl<'de> Deserialize<'de> for SignedData
impl<'de> Deserialize<'de> for SignedData
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 JsonSchema for SignedData
impl JsonSchema for SignedData
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SignedData
impl PartialEq for SignedData
Source§impl Serialize for SignedData
impl Serialize for SignedData
impl StructuralPartialEq for SignedData
Source§impl Validate for SignedData
impl Validate for SignedData
Auto Trait Implementations§
impl Freeze for SignedData
impl RefUnwindSafe for SignedData
impl Send for SignedData
impl Sync for SignedData
impl Unpin for SignedData
impl UnsafeUnpin for SignedData
impl UnwindSafe for SignedData
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