ocpp/v1_6/datatype/configuration_key
OCPP 1.6 ConfigurationKey data type.
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 |
|---|---|---|---|
key | String | ✓ | (max 50 chars) |
readonly | Bool | ✓ | |
value | String | — | (max 500 chars) |
Schema: ConfigurationKey
pub type ConfigurationKey {
ConfigurationKey(
key: String,
readonly: Bool,
value: option.Option(String),
)
}
Constructors
-
ConfigurationKey( key: String, readonly: Bool, value: option.Option(String), )
Values
pub fn decoder() -> decode.Decoder(ConfigurationKey)
Decode a ConfigurationKey from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(
key key: String,
readonly readonly: Bool,
) -> ConfigurationKey
Construct a ConfigurationKey from its required fields, with every optional field set to None.
pub fn to_json(value: ConfigurationKey) -> json.Json
Encode a ConfigurationKey to its OCPP-J JSON object.