Struct rust_ocpp::v1_6::messages::stop_transaction::StopTransactionRequest
source · pub struct StopTransactionRequest {
pub id_tag: Option<String>,
pub meter_stop: i32,
pub timestamp: DateTime<Utc>,
pub transaction_id: i32,
pub reason: Option<Reason>,
pub transaction_data: Option<Vec<MeterValue>>,
}
Expand description
This contains the field definition of the StopTransaction.req PDU sent by the Charge Point to the Central System. See also Stop Transaction
Fields§
§id_tag: Option<String>
Required.
meter_stop: i32
Optional. Only filled in when request applies to a specific connector.
timestamp: DateTime<Utc>
Required. This contains the date and time on which the transaction is stopped.
transaction_id: i32
Required. This contains the transaction-id as received by the StartTransactionResponse
reason: Option<Reason>
Optional. This contains the reason why the transaction was stopped. MAY only be omitted when the Reason is “Local”.
transaction_data: Option<Vec<MeterValue>>
Optional. This contains transaction usage details relevant for billing purposes.
Trait Implementations§
source§impl Clone for StopTransactionRequest
impl Clone for StopTransactionRequest
source§fn clone(&self) -> StopTransactionRequest
fn clone(&self) -> StopTransactionRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StopTransactionRequest
impl Debug for StopTransactionRequest
source§impl Default for StopTransactionRequest
impl Default for StopTransactionRequest
source§fn default() -> StopTransactionRequest
fn default() -> StopTransactionRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StopTransactionRequest
impl<'de> Deserialize<'de> for StopTransactionRequest
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
source§impl PartialEq for StopTransactionRequest
impl PartialEq for StopTransactionRequest
source§fn eq(&self, other: &StopTransactionRequest) -> bool
fn eq(&self, other: &StopTransactionRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StopTransactionRequest
impl Serialize for StopTransactionRequest
source§impl Validate for StopTransactionRequest
impl Validate for StopTransactionRequest
source§impl<'v_a> ValidateArgs<'v_a> for StopTransactionRequest
impl<'v_a> ValidateArgs<'v_a> for StopTransactionRequest
type Args = ()
fn validate_args(&self, args: Self::Args) -> Result<(), ValidationErrors>
impl StructuralPartialEq for StopTransactionRequest
Auto Trait Implementations§
impl RefUnwindSafe for StopTransactionRequest
impl Send for StopTransactionRequest
impl Sync for StopTransactionRequest
impl Unpin for StopTransactionRequest
impl UnwindSafe for StopTransactionRequest
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