pub struct SignedValue {
pub nature: CiString<32>,
pub plain_data: OcpiString<5000>,
pub signed_data: OcpiString<5000>,
pub extensions: Extensions,
}Available on crate feature
v2_3_0 only.Expand description
One signed and plain value pair.
Spec: 2.3.0 §mod_cdrs_signed_value_class
Fields§
§nature: CiString<32>Nature of the value: the event it belongs to.
Possible values at moment of writing: Start, End, Intermediate. Others might be added later.
plain_data: OcpiString<5000>The un-encoded string of data. Its format depends on the encoding method.
NOTE: earlier releases of the OCPI 2.3.0 documentation mistakenly gave a maximum of 512.
signed_data: OcpiString<5000>Blob of signed data, base64 encoded.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Trait Implementations§
Source§impl Clone for SignedValue
impl Clone for SignedValue
Source§fn clone(&self) -> SignedValue
fn clone(&self) -> SignedValue
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 SignedValue
impl Debug for SignedValue
Source§impl<'de> Deserialize<'de> for SignedValue
impl<'de> Deserialize<'de> for SignedValue
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 SignedValue
impl JsonSchema for SignedValue
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 SignedValue
impl PartialEq for SignedValue
Source§impl Serialize for SignedValue
impl Serialize for SignedValue
impl StructuralPartialEq for SignedValue
Source§impl Validate for SignedValue
impl Validate for SignedValue
Auto Trait Implementations§
impl Freeze for SignedValue
impl RefUnwindSafe for SignedValue
impl Send for SignedValue
impl Sync for SignedValue
impl Unpin for SignedValue
impl UnsafeUnpin for SignedValue
impl UnwindSafe for SignedValue
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