pub struct GetDERControlRequest {
pub request_id: i32,
pub is_default: Option<bool>,
pub control_type: Option<DERControl>,
pub control_id: Option<String>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · R — DER Control · CSMS → Charging Station · CALL.
Fields§
§request_id: i32RequestId to be used in ReportDERControlRequest.
is_default: Option<bool>True: get a default DER control. False: get a scheduled control.
control_type: Option<DERControl>The controlType member.
control_id: Option<String>Id of setting to get. When omitted all settings for controlType are retrieved.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetDERControlRequest
impl GetDERControlRequest
Sourcepub fn with_is_default(self, value: bool) -> Self
pub fn with_is_default(self, value: bool) -> Self
Sets the optional isDefault field.
Sourcepub fn with_control_type(self, value: DERControl) -> Self
pub fn with_control_type(self, value: DERControl) -> Self
Sets the optional controlType field.
Sourcepub fn with_control_id(self, value: impl Into<String>) -> Self
pub fn with_control_id(self, value: impl Into<String>) -> Self
Sets the optional controlId 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 GetDERControlRequest
impl Clone for GetDERControlRequest
impl Confirmed for GetDERControlRequest
Source§impl Debug for GetDERControlRequest
impl Debug for GetDERControlRequest
Source§impl<'de> Deserialize<'de> for GetDERControlRequest
impl<'de> Deserialize<'de> for GetDERControlRequest
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 PartialEq for GetDERControlRequest
impl PartialEq for GetDERControlRequest
Source§impl Request for GetDERControlRequest
impl Request for GetDERControlRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = GetDERControlResponse
type Response = GetDERControlResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for GetDERControlRequest
Source§impl Serialize for GetDERControlRequest
impl Serialize for GetDERControlRequest
impl StructuralPartialEq for GetDERControlRequest
Source§impl Validate for GetDERControlRequest
impl Validate for GetDERControlRequest
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 GetDERControlRequest
impl Freeze for GetDERControlRequest
impl RefUnwindSafe for GetDERControlRequest
impl Send for GetDERControlRequest
impl Sync for GetDERControlRequest
impl Unpin for GetDERControlRequest
impl UnsafeUnpin for GetDERControlRequest
impl UnwindSafe for GetDERControlRequest
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