pub struct SetDERControlRequest {
pub is_default: bool,
pub control_id: String,
pub control_type: DERControl,
pub curve: Option<DERCurve>,
pub enter_service: Option<EnterService>,
pub fixed_pf_absorb: Option<FixedPF>,
pub fixed_pf_inject: Option<FixedPF>,
pub fixed_var: Option<FixedVar>,
pub freq_droop: Option<FreqDroop>,
pub gradient: Option<Gradient>,
pub limit_max_discharge: Option<LimitMaxDischarge>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · R — DER Control · CSMS → Charging Station · CALL.
Fields§
§is_default: boolTrue if this is a default DER control
control_id: StringUnique id of this control, e.g. UUID
control_type: DERControlThe controlType member.
curve: Option<DERCurve>The curve member.
enter_service: Option<EnterService>The enterService member.
fixed_pf_absorb: Option<FixedPF>The fixedPFAbsorb member.
fixed_pf_inject: Option<FixedPF>The fixedPFInject member.
fixed_var: Option<FixedVar>The fixedVar member.
freq_droop: Option<FreqDroop>The freqDroop member.
gradient: Option<Gradient>The gradient member.
limit_max_discharge: Option<LimitMaxDischarge>The limitMaxDischarge member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl SetDERControlRequest
impl SetDERControlRequest
Sourcepub fn new(
is_default: bool,
control_id: impl Into<String>,
control_type: DERControl,
) -> Self
pub fn new( is_default: bool, control_id: impl Into<String>, control_type: DERControl, ) -> Self
Creates a SetDERControlRequest from its required fields.
Sourcepub fn with_curve(self, value: DERCurve) -> Self
pub fn with_curve(self, value: DERCurve) -> Self
Sets the optional curve field.
Sourcepub fn with_enter_service(self, value: EnterService) -> Self
pub fn with_enter_service(self, value: EnterService) -> Self
Sets the optional enterService field.
Sourcepub fn with_fixed_pf_absorb(self, value: FixedPF) -> Self
pub fn with_fixed_pf_absorb(self, value: FixedPF) -> Self
Sets the optional fixedPFAbsorb field.
Sourcepub fn with_fixed_pf_inject(self, value: FixedPF) -> Self
pub fn with_fixed_pf_inject(self, value: FixedPF) -> Self
Sets the optional fixedPFInject field.
Sourcepub fn with_fixed_var(self, value: FixedVar) -> Self
pub fn with_fixed_var(self, value: FixedVar) -> Self
Sets the optional fixedVar field.
Sourcepub fn with_freq_droop(self, value: FreqDroop) -> Self
pub fn with_freq_droop(self, value: FreqDroop) -> Self
Sets the optional freqDroop field.
Sourcepub fn with_gradient(self, value: Gradient) -> Self
pub fn with_gradient(self, value: Gradient) -> Self
Sets the optional gradient field.
Sourcepub fn with_limit_max_discharge(self, value: LimitMaxDischarge) -> Self
pub fn with_limit_max_discharge(self, value: LimitMaxDischarge) -> Self
Sets the optional limitMaxDischarge 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 SetDERControlRequest
impl Clone for SetDERControlRequest
impl Confirmed for SetDERControlRequest
Source§impl Debug for SetDERControlRequest
impl Debug for SetDERControlRequest
Source§impl<'de> Deserialize<'de> for SetDERControlRequest
impl<'de> Deserialize<'de> for SetDERControlRequest
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 SetDERControlRequest
impl PartialEq for SetDERControlRequest
Source§impl Request for SetDERControlRequest
impl Request for SetDERControlRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = SetDERControlResponse
type Response = SetDERControlResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for SetDERControlRequest
Source§impl Serialize for SetDERControlRequest
impl Serialize for SetDERControlRequest
impl StructuralPartialEq for SetDERControlRequest
Source§impl Validate for SetDERControlRequest
impl Validate for SetDERControlRequest
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 SetDERControlRequest
impl Freeze for SetDERControlRequest
impl RefUnwindSafe for SetDERControlRequest
impl Send for SetDERControlRequest
impl Sync for SetDERControlRequest
impl Unpin for SetDERControlRequest
impl UnsafeUnpin for SetDERControlRequest
impl UnwindSafe for SetDERControlRequest
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