pub struct PullDynamicScheduleUpdateResponse {
pub status: ChargingProfileStatus,
pub schedule_update: Option<ChargingScheduleUpdate>,
pub status_info: Option<StatusInfo>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · K — Smart Charging · Charging Station → CSMS · CALL.
Fields§
§status: ChargingProfileStatusThe status member.
schedule_update: Option<ChargingScheduleUpdate>The scheduleUpdate member.
status_info: Option<StatusInfo>The statusInfo member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl PullDynamicScheduleUpdateResponse
impl PullDynamicScheduleUpdateResponse
Sourcepub fn new(status: ChargingProfileStatus) -> Self
pub fn new(status: ChargingProfileStatus) -> Self
Creates a PullDynamicScheduleUpdateResponse from its required fields.
Sourcepub fn with_schedule_update(self, value: ChargingScheduleUpdate) -> Self
pub fn with_schedule_update(self, value: ChargingScheduleUpdate) -> Self
Sets the optional scheduleUpdate field.
Sourcepub fn with_status_info(self, value: StatusInfo) -> Self
pub fn with_status_info(self, value: StatusInfo) -> Self
Sets the optional statusInfo 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 PullDynamicScheduleUpdateResponse
impl Clone for PullDynamicScheduleUpdateResponse
Source§fn clone(&self) -> PullDynamicScheduleUpdateResponse
fn clone(&self) -> PullDynamicScheduleUpdateResponse
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 moreSource§impl<'de> Deserialize<'de> for PullDynamicScheduleUpdateResponse
impl<'de> Deserialize<'de> for PullDynamicScheduleUpdateResponse
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 PullDynamicScheduleUpdateResponse
impl Sealed for PullDynamicScheduleUpdateResponse
impl StructuralPartialEq for PullDynamicScheduleUpdateResponse
Source§impl Validate for PullDynamicScheduleUpdateResponse
impl Validate for PullDynamicScheduleUpdateResponse
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 PullDynamicScheduleUpdateResponse
impl RefUnwindSafe for PullDynamicScheduleUpdateResponse
impl Send for PullDynamicScheduleUpdateResponse
impl Sync for PullDynamicScheduleUpdateResponse
impl Unpin for PullDynamicScheduleUpdateResponse
impl UnsafeUnpin for PullDynamicScheduleUpdateResponse
impl UnwindSafe for PullDynamicScheduleUpdateResponse
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