pub struct GetTransactionStatusResponse {
pub messages_in_queue: bool,
pub ongoing_indicator: Option<bool>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · E — Transactions · CSMS → Charging Station · CALL.
Fields§
§messages_in_queue: boolWhether there are still message to be delivered.
ongoing_indicator: Option<bool>Whether the transaction is still ongoing.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetTransactionStatusResponse
impl GetTransactionStatusResponse
Sourcepub fn new(messages_in_queue: bool) -> Self
pub fn new(messages_in_queue: bool) -> Self
Creates a GetTransactionStatusResponse from its required fields.
Sourcepub fn with_ongoing_indicator(self, value: bool) -> Self
pub fn with_ongoing_indicator(self, value: bool) -> Self
Sets the optional ongoingIndicator 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 GetTransactionStatusResponse
impl Clone for GetTransactionStatusResponse
Source§impl Debug for GetTransactionStatusResponse
impl Debug for GetTransactionStatusResponse
Source§impl<'de> Deserialize<'de> for GetTransactionStatusResponse
impl<'de> Deserialize<'de> for GetTransactionStatusResponse
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
impl Response for GetTransactionStatusResponse
impl Sealed for GetTransactionStatusResponse
impl StructuralPartialEq for GetTransactionStatusResponse
Source§impl Validate for GetTransactionStatusResponse
impl Validate for GetTransactionStatusResponse
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 Forget for GetTransactionStatusResponse
impl Freeze for GetTransactionStatusResponse
impl RefUnwindSafe for GetTransactionStatusResponse
impl Send for GetTransactionStatusResponse
impl Sync for GetTransactionStatusResponse
impl Unpin for GetTransactionStatusResponse
impl UnsafeUnpin for GetTransactionStatusResponse
impl UnwindSafe for GetTransactionStatusResponse
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