pub struct ReportDERControlRequest {
pub request_id: i32,
pub curve: Option<Vec<DERCurveGet>>,
pub enter_service: Option<Vec<EnterServiceGet>>,
pub fixed_pf_absorb: Option<Vec<FixedPFGet>>,
pub fixed_pf_inject: Option<Vec<FixedPFGet>>,
pub fixed_var: Option<Vec<FixedVarGet>>,
pub freq_droop: Option<Vec<FreqDroopGet>>,
pub gradient: Option<Vec<GradientGet>>,
pub limit_max_discharge: Option<Vec<LimitMaxDischargeGet>>,
pub tbc: Option<bool>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · R — DER Control · Charging Station → CSMS · CALL.
Fields§
§request_id: i32RequestId from GetDERControlRequest.
curve: Option<Vec<DERCurveGet>>The curve member.
enter_service: Option<Vec<EnterServiceGet>>The enterService member.
fixed_pf_absorb: Option<Vec<FixedPFGet>>The fixedPFAbsorb member.
fixed_pf_inject: Option<Vec<FixedPFGet>>The fixedPFInject member.
fixed_var: Option<Vec<FixedVarGet>>The fixedVar member.
freq_droop: Option<Vec<FreqDroopGet>>The freqDroop member.
gradient: Option<Vec<GradientGet>>The gradient member.
limit_max_discharge: Option<Vec<LimitMaxDischargeGet>>The limitMaxDischarge member.
tbc: Option<bool>To Be Continued. Default value when omitted: false. + False indicates that there are no further messages as part of this report.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl ReportDERControlRequest
impl ReportDERControlRequest
Sourcepub fn new(request_id: i32) -> Self
pub fn new(request_id: i32) -> Self
Creates a ReportDERControlRequest from its required fields.
Sourcepub fn with_curve(self, value: Vec<DERCurveGet>) -> Self
pub fn with_curve(self, value: Vec<DERCurveGet>) -> Self
Sets the optional curve field.
Sourcepub fn with_enter_service(self, value: Vec<EnterServiceGet>) -> Self
pub fn with_enter_service(self, value: Vec<EnterServiceGet>) -> Self
Sets the optional enterService field.
Sourcepub fn with_fixed_pf_absorb(self, value: Vec<FixedPFGet>) -> Self
pub fn with_fixed_pf_absorb(self, value: Vec<FixedPFGet>) -> Self
Sets the optional fixedPFAbsorb field.
Sourcepub fn with_fixed_pf_inject(self, value: Vec<FixedPFGet>) -> Self
pub fn with_fixed_pf_inject(self, value: Vec<FixedPFGet>) -> Self
Sets the optional fixedPFInject field.
Sourcepub fn with_fixed_var(self, value: Vec<FixedVarGet>) -> Self
pub fn with_fixed_var(self, value: Vec<FixedVarGet>) -> Self
Sets the optional fixedVar field.
Sourcepub fn with_freq_droop(self, value: Vec<FreqDroopGet>) -> Self
pub fn with_freq_droop(self, value: Vec<FreqDroopGet>) -> Self
Sets the optional freqDroop field.
Sourcepub fn with_gradient(self, value: Vec<GradientGet>) -> Self
pub fn with_gradient(self, value: Vec<GradientGet>) -> Self
Sets the optional gradient field.
Sourcepub fn with_limit_max_discharge(self, value: Vec<LimitMaxDischargeGet>) -> Self
pub fn with_limit_max_discharge(self, value: Vec<LimitMaxDischargeGet>) -> 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 ReportDERControlRequest
impl Clone for ReportDERControlRequest
Source§fn clone(&self) -> ReportDERControlRequest
fn clone(&self) -> ReportDERControlRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Confirmed for ReportDERControlRequest
Source§impl Debug for ReportDERControlRequest
impl Debug for ReportDERControlRequest
Source§impl<'de> Deserialize<'de> for ReportDERControlRequest
impl<'de> Deserialize<'de> for ReportDERControlRequest
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>,
Source§impl PartialEq for ReportDERControlRequest
impl PartialEq for ReportDERControlRequest
Source§impl Request for ReportDERControlRequest
impl Request for ReportDERControlRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = ReportDERControlResponse
type Response = ReportDERControlResponse
NoResponse for a SEND.impl Sealed for ReportDERControlRequest
Source§impl Serialize for ReportDERControlRequest
impl Serialize for ReportDERControlRequest
impl StructuralPartialEq for ReportDERControlRequest
Source§impl Validate for ReportDERControlRequest
impl Validate for ReportDERControlRequest
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
out, relative to path.