Struct rust_ocpp::v1_6::messages::reserve_now::ReserveNowRequest
source · [−]pub struct ReserveNowRequest {
pub connector_id: u64,
pub expiry_date: DateTime<Utc>,
pub id_tag: String,
pub parent_id_tag: Option<String>,
pub reservation_id: i64,
}
Expand description
This contains the field definition of the ReserveNow.req PDU sent by the Central System to the Charge Point. See also Reserve Now
Fields
connector_id: u64
Required. This contains the id of the connector to be reserved. A value of 0 means that the reservation is not for a specific connector.
expiry_date: DateTime<Utc>
Required. This contains the date and time when the reservation ends.
id_tag: String
Required. The identifier for which the Charge Point has to reserve a connector.
parent_id_tag: Option<String>
Optional. The parent idTag.
reservation_id: i64
Required. Unique id for this reservation.
Trait Implementations
sourceimpl Clone for ReserveNowRequest
impl Clone for ReserveNowRequest
sourcefn clone(&self) -> ReserveNowRequest
fn clone(&self) -> ReserveNowRequest
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 ReserveNowRequest
impl Debug for ReserveNowRequest
sourceimpl<'de> Deserialize<'de> for ReserveNowRequest
impl<'de> Deserialize<'de> for ReserveNowRequest
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<ReserveNowRequest> for ReserveNowRequest
impl PartialEq<ReserveNowRequest> for ReserveNowRequest
sourcefn eq(&self, other: &ReserveNowRequest) -> bool
fn eq(&self, other: &ReserveNowRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReserveNowRequest) -> bool
fn ne(&self, other: &ReserveNowRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for ReserveNowRequest
impl Serialize for ReserveNowRequest
sourceimpl Validate for ReserveNowRequest
impl Validate for ReserveNowRequest
fn validate(&self) -> Result<(), ValidationErrors>
sourceimpl<'v_a> ValidateArgs<'v_a> for ReserveNowRequest
impl<'v_a> ValidateArgs<'v_a> for ReserveNowRequest
type Args = ()
fn validate_args(&self, args: Self::Args) -> Result<(), ValidationErrors>
impl StructuralPartialEq for ReserveNowRequest
Auto Trait Implementations
impl RefUnwindSafe for ReserveNowRequest
impl Send for ReserveNowRequest
impl Sync for ReserveNowRequest
impl Unpin for ReserveNowRequest
impl UnwindSafe for ReserveNowRequest
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