#[non_exhaustive]pub enum RecordEncoding {
Base64,
Plain,
}Expand description
How a station wrote signedMeterData.
Reported by SignedMeterValue::record, because only one of these is conforming and a
consumer billing from the record is the party that needs to know.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Base64
Base64, as 2.0.1 Part 2 §2.46 specifies.
Plain
The record in plain, which the specification does not permit and many stations send.
Unambiguous — both formats OCPP names for this field carry a non-Base64 character in their first bytes — but worth reporting to whoever owns the fleet.
Implementations§
Source§impl RecordEncoding
impl RecordEncoding
Sourcepub const fn is_conforming(self) -> bool
pub const fn is_conforming(self) -> bool
Whether this is the encoding 2.0.1 Part 2 §2.46 specifies.
Trait Implementations§
Source§impl Clone for RecordEncoding
impl Clone for RecordEncoding
impl Copy for RecordEncoding
Source§impl Debug for RecordEncoding
impl Debug for RecordEncoding
impl Eq for RecordEncoding
Source§impl PartialEq for RecordEncoding
impl PartialEq for RecordEncoding
impl StructuralPartialEq for RecordEncoding
Auto Trait Implementations§
impl Forget for RecordEncoding
impl Freeze for RecordEncoding
impl Move for RecordEncoding
impl RefUnwindSafe for RecordEncoding
impl Send for RecordEncoding
impl Sync for RecordEncoding
impl Unpin for RecordEncoding
impl UnsafeUnpin for RecordEncoding
impl UnwindSafe for RecordEncoding
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