Struct rust_ocpp::v2_0_1::messages::transaction_event::TransactionEventRequest
source · [−]pub struct TransactionEventRequest {
pub event_type: TransactionEventEnumType,
pub timestamp: DateTime<Utc>,
pub trigger_reason: TriggerReasonEnumType,
pub seq_no: i64,
pub offline: Option<bool>,
pub number_of_phases_used: Option<i64>,
pub cable_max_current: Option<i64>,
pub reservation_id: Option<i64>,
pub transaction_info: TransactionType,
pub id_token: Option<IdTokenType>,
pub evse: Option<EVSEType>,
pub meter_value: Option<Vec<MeterValueType>>,
}
Expand description
Sent by the Charging Station to the CSMS to request that the Certificate Authority signs the public key into a certificate.
Fields
event_type: TransactionEventEnumType
timestamp: DateTime<Utc>
trigger_reason: TriggerReasonEnumType
seq_no: i64
offline: Option<bool>
number_of_phases_used: Option<i64>
cable_max_current: Option<i64>
reservation_id: Option<i64>
transaction_info: TransactionType
id_token: Option<IdTokenType>
evse: Option<EVSEType>
meter_value: Option<Vec<MeterValueType>>
Trait Implementations
sourceimpl Clone for TransactionEventRequest
impl Clone for TransactionEventRequest
sourcefn clone(&self) -> TransactionEventRequest
fn clone(&self) -> TransactionEventRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransactionEventRequest
impl Debug for TransactionEventRequest
sourceimpl<'de> Deserialize<'de> for TransactionEventRequest
impl<'de> Deserialize<'de> for TransactionEventRequest
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
sourceimpl PartialEq<TransactionEventRequest> for TransactionEventRequest
impl PartialEq<TransactionEventRequest> for TransactionEventRequest
sourcefn eq(&self, other: &TransactionEventRequest) -> bool
fn eq(&self, other: &TransactionEventRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TransactionEventRequest) -> bool
fn ne(&self, other: &TransactionEventRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for TransactionEventRequest
impl Serialize for TransactionEventRequest
impl StructuralPartialEq for TransactionEventRequest
Auto Trait Implementations
impl RefUnwindSafe for TransactionEventRequest
impl Send for TransactionEventRequest
impl Sync for TransactionEventRequest
impl Unpin for TransactionEventRequest
impl UnwindSafe for TransactionEventRequest
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more