ocpp/v2_1/datatype/der_curve_get
OCPP 2.1 DerCurveGet data type (schema DERCurveGetType).
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 |
|---|---|---|---|
curve | DerCurve | ✓ | |
curve_type | DerControl | ✓ | |
custom_data | CustomData | — | |
id | String | ✓ | Id of DER curve (max 36 chars) |
is_default | Bool | ✓ | True if this is a default curve |
is_superseded | Bool | ✓ | True if this setting is superseded by a higher priority setting (i.e. lower value of priority) |
Schema: DERCurveGetType
pub type DerCurveGet {
DerCurveGet(
curve: der_curve.DerCurve,
curve_type: der_control.DerControl,
custom_data: option.Option(custom_data.CustomData),
id: String,
is_default: Bool,
is_superseded: Bool,
)
}
Constructors
-
DerCurveGet( curve: der_curve.DerCurve, curve_type: der_control.DerControl, custom_data: option.Option(custom_data.CustomData), id: String, is_default: Bool, is_superseded: Bool, )
Values
pub fn decoder() -> decode.Decoder(DerCurveGet)
Decode a DerCurveGet from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(
curve curve: der_curve.DerCurve,
curve_type curve_type: der_control.DerControl,
id id: String,
is_default is_default: Bool,
is_superseded is_superseded: Bool,
) -> DerCurveGet
Construct a DerCurveGet from its required fields, with every optional field set to None.
pub fn to_json(value: DerCurveGet) -> json.Json
Encode a DerCurveGet to its OCPP-J JSON object.