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