pub struct Report {
pub tariff_id: String,
pub tariff_currency_code: Code,
pub partial_cdr: PartialCdr,
}Expand description
The outcome of calling crate::cdr::generate_from_tariff.
Fields§
§tariff_id: StringThe ID of the parsed tariff.
tariff_currency_code: Code§partial_cdr: PartialCdrA partial CDR that can be fleshed out by the caller.
The CDR is partial as not all required fields are set as the cdr_from_tariff function
does not know anything about the EVSE location or the token used to authenticate the chargesession.
- See: OCPI spec 2.2.1: CDR
Trait Implementations§
Source§impl IntoCaveat for Report
impl IntoCaveat for Report
Source§impl IntoCaveatDeferred for Report
impl IntoCaveatDeferred for Report
Source§fn into_caveat_deferred<K: Kind>(
self,
warnings: SetDeferred<K>,
) -> CaveatDeferred<Self, K>
fn into_caveat_deferred<K: Kind>( self, warnings: SetDeferred<K>, ) -> CaveatDeferred<Self, K>
Any type can be converted to
CaveatDeferred<T> by supplying a list of warning Kinds.Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
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