pub struct NotifyDERStartStopRequest {
pub control_id: String,
pub started: bool,
pub timestamp: DateTime,
pub superseded_ids: Option<Vec<String>>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · R — DER Control · Charging Station → CSMS · CALL.
Fields§
§control_id: StringId of the started or stopped DER control. Corresponds to the controlId of the SetDERControlRequest.
started: boolTrue if DER control has started. False if it has ended.
timestamp: DateTimeTime of start or end of event.
superseded_ids: Option<Vec<String>>List of controlIds that are superseded as a result of this control starting.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl NotifyDERStartStopRequest
impl NotifyDERStartStopRequest
Sourcepub fn new(
control_id: impl Into<String>,
started: bool,
timestamp: impl Into<DateTime>,
) -> Self
pub fn new( control_id: impl Into<String>, started: bool, timestamp: impl Into<DateTime>, ) -> Self
Creates a NotifyDERStartStopRequest from its required fields.
Sourcepub fn with_superseded_ids(
self,
value: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn with_superseded_ids( self, value: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Sets the optional supersededIds 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 NotifyDERStartStopRequest
impl Clone for NotifyDERStartStopRequest
impl Confirmed for NotifyDERStartStopRequest
Source§impl Debug for NotifyDERStartStopRequest
impl Debug for NotifyDERStartStopRequest
Source§impl<'de> Deserialize<'de> for NotifyDERStartStopRequest
impl<'de> Deserialize<'de> for NotifyDERStartStopRequest
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 NotifyDERStartStopRequest
impl Request for NotifyDERStartStopRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = NotifyDERStartStopResponse
type Response = NotifyDERStartStopResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for NotifyDERStartStopRequest
impl StructuralPartialEq for NotifyDERStartStopRequest
Source§impl Validate for NotifyDERStartStopRequest
impl Validate for NotifyDERStartStopRequest
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 NotifyDERStartStopRequest
impl Freeze for NotifyDERStartStopRequest
impl Move for NotifyDERStartStopRequest
impl RefUnwindSafe for NotifyDERStartStopRequest
impl Send for NotifyDERStartStopRequest
impl Sync for NotifyDERStartStopRequest
impl Unpin for NotifyDERStartStopRequest
impl UnsafeUnpin for NotifyDERStartStopRequest
impl UnwindSafe for NotifyDERStartStopRequest
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