Struct rust_ocpp::v1_6::messages::stop_transaction::StopTransactionRequest
source · [−]pub struct StopTransactionRequest {
pub id_tag: Option<String>,
pub meter_stop: i64,
pub timestamp: DateTime<Utc>,
pub transaction_id: i64,
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: i64
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: i64
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
sourceimpl Clone for StopTransactionRequest
impl Clone for StopTransactionRequest
sourcefn clone(&self) -> StopTransactionRequest
fn clone(&self) -> StopTransactionRequest
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 StopTransactionRequest
impl Debug for StopTransactionRequest
sourceimpl<'de> Deserialize<'de> for StopTransactionRequest
impl<'de> Deserialize<'de> for StopTransactionRequest
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<StopTransactionRequest> for StopTransactionRequest
impl PartialEq<StopTransactionRequest> for StopTransactionRequest
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &StopTransactionRequest) -> bool
fn ne(&self, other: &StopTransactionRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for StopTransactionRequest
impl Serialize for StopTransactionRequest
sourceimpl Validate for StopTransactionRequest
impl Validate for StopTransactionRequest
fn validate(&self) -> Result<(), ValidationErrors>
sourceimpl<'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
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