ocpp/v2_1/datatype/der_curve_points
OCPP 2.1 DerCurvePoints data type (schema DERCurvePointsType).
to_json/decoder map to/from its OCPP-J JSON object; new (when
present) builds a value from the required fields only.
Types
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
x | Float | ✓ | The data value of the X-axis (independent) variable, depending on the curve type. |
y | Float | ✓ | The data value of the Y-axis (dependent) variable, depending on the cmn_derunitenumtype of the curve. If y is power factor, then a positive value means DER is absorbing reactive power (under-excited), a negative value when DER is injecting reactive power (over-excited). |
Schema: DERCurvePointsType
pub type DerCurvePoints {
DerCurvePoints(
custom_data: option.Option(custom_data.CustomData),
x: Float,
y: Float,
)
}
Constructors
-
DerCurvePoints( custom_data: option.Option(custom_data.CustomData), x: Float, y: Float, )
Values
pub fn decoder() -> decode.Decoder(DerCurvePoints)
Decode a DerCurvePoints from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(x x: Float, y y: Float) -> DerCurvePoints
Construct a DerCurvePoints from its required fields, with every optional field set to None.
pub fn to_json(value: DerCurvePoints) -> json.Json
Encode a DerCurvePoints to its OCPP-J JSON object.