pub struct StateChange {
pub state: SessionState,
pub at: OffsetDateTime,
}Expand description
One state the session was in, and when it entered it.
The history exists because “suspended” is not a status light, it is an
interval that gets priced: [AFIR Art. 5(4)] lets a fast charger add an
occupancy fee per minute for the time the vehicle is connected and not
charging. A state field with no timestamp can say the session is
suspended and never say for how long, which is precisely the number the
article turns on.
Fields§
§state: SessionStateThe state entered.
at: OffsetDateTimeWhen.
Trait Implementations§
Source§impl Clone for StateChange
impl Clone for StateChange
impl Copy for StateChange
Source§impl Debug for StateChange
impl Debug for StateChange
Source§impl<'de> Deserialize<'de> for StateChange
impl<'de> Deserialize<'de> for StateChange
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 Eq for StateChange
Source§impl PartialEq for StateChange
impl PartialEq for StateChange
Source§impl Serialize for StateChange
impl Serialize for StateChange
impl StructuralPartialEq for StateChange
Auto Trait Implementations§
impl Forget for StateChange
impl Freeze for StateChange
impl Move for StateChange
impl RefUnwindSafe for StateChange
impl Send for StateChange
impl Sync for StateChange
impl Unpin for StateChange
impl UnsafeUnpin for StateChangewhere
NonZeroI32Inner: UnsafeUnpin,
impl UnwindSafe for StateChange
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