pub enum Reason {
DeAuthorized,
EmergencyStop,
EVDisconnected,
HardReset,
Local,
Other,
PowerLoss,
Reboot,
Remote,
SoftReset,
UnlockCommand,
}
Expand description
Reason for stopping a transaction in StopTransactionRequest
Variants
DeAuthorized
The transaction was stopped because of the authorization status in a StartTransaction.conf
EmergencyStop
Emergency stop button was used.
EVDisconnected
disconnecting of cable, vehicle moved away from inductive charge unit.
HardReset
A hard reset command was received.
Local
Stopped locally on request of the user at the Charge Point. This is a regular termination of a transaction. Examples: presenting an RFID tag, pressing a button to stop.
Other
Any other reason.
PowerLoss
Complete loss of power.
Reboot
A locally initiated reset/reboot occurred. (for instance watchdog kicked in)
Remote
Stopped remotely on request of the user. This is a regular termination of a transaction. Examples: termination using a smartphone app, exceeding a (non local) prepaid credit.
SoftReset
A soft reset command was received.
UnlockCommand
Central System sent an Unlock Connector command.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Reason
impl<'de> Deserialize<'de> for Reason
sourcefn 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 StructuralPartialEq for Reason
Auto Trait Implementations
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more