pub struct RequestStartTransactionRequest {
pub id_token: IdToken,
pub remote_start_id: i32,
pub evse_id: Option<i32>,
pub group_id_token: Option<IdToken>,
pub charging_profile: Option<ChargingProfile>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · F — Remote Control · CSMS → Charging Station · CALL.
Fields§
§id_token: IdTokenThe idToken member.
remote_start_id: i32Id given by the server to this start request. The Charging Station will return this in the <<transactioneventrequest, TransactionEventRequest>>, letting the server know which transaction was started for this request. Use to start a transaction.
evse_id: Option<i32>Number of the EVSE on which to start the transaction. EvseId SHALL be > 0
group_id_token: Option<IdToken>The groupIdToken member.
charging_profile: Option<ChargingProfile>The chargingProfile member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl RequestStartTransactionRequest
impl RequestStartTransactionRequest
Sourcepub fn new(id_token: IdToken, remote_start_id: i32) -> Self
pub fn new(id_token: IdToken, remote_start_id: i32) -> Self
Creates a RequestStartTransactionRequest from its required fields.
Sourcepub fn with_evse_id(self, value: i32) -> Self
pub fn with_evse_id(self, value: i32) -> Self
Sets the optional evseId field.
Sourcepub fn with_group_id_token(self, value: IdToken) -> Self
pub fn with_group_id_token(self, value: IdToken) -> Self
Sets the optional groupIdToken field.
Sourcepub fn with_charging_profile(self, value: ChargingProfile) -> Self
pub fn with_charging_profile(self, value: ChargingProfile) -> Self
Sets the optional chargingProfile field.
Sourcepub fn with_custom_data(self, value: CustomData) -> Self
pub fn with_custom_data(self, value: CustomData) -> Self
Sets the optional customData field.
Trait Implementations§
Source§impl Clone for RequestStartTransactionRequest
impl Clone for RequestStartTransactionRequest
Source§fn clone(&self) -> RequestStartTransactionRequest
fn clone(&self) -> RequestStartTransactionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Confirmed for RequestStartTransactionRequest
Source§impl<'de> Deserialize<'de> for RequestStartTransactionRequest
impl<'de> Deserialize<'de> for RequestStartTransactionRequest
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 Request for RequestStartTransactionRequest
impl Request for RequestStartTransactionRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = RequestStartTransactionResponse
type Response = RequestStartTransactionResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for RequestStartTransactionRequest
impl StructuralPartialEq for RequestStartTransactionRequest
Source§impl Validate for RequestStartTransactionRequest
impl Validate for RequestStartTransactionRequest
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Freeze for RequestStartTransactionRequest
impl RefUnwindSafe for RequestStartTransactionRequest
impl Send for RequestStartTransactionRequest
impl Sync for RequestStartTransactionRequest
impl Unpin for RequestStartTransactionRequest
impl UnsafeUnpin for RequestStartTransactionRequest
impl UnwindSafe for RequestStartTransactionRequest
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