ocpp/v2_0_1/datatype/get_variable_data
OCPP 2.0.1 GetVariableData data type (schema GetVariableDataType).
to_json/decoder map to/from its OCPP-J JSON object; new (when
present) builds a value from the required fields only.
Types
Class to hold parameters for GetVariables request.
| Field | Type | Req | Description |
|---|---|---|---|
attribute_type | Attribute | — | |
component | Component | ✓ | |
custom_data | CustomData | — | |
variable | Variable | ✓ |
Schema: GetVariableDataType
pub type GetVariableData {
GetVariableData(
attribute_type: option.Option(attribute.Attribute),
component: component.Component,
custom_data: option.Option(custom_data.CustomData),
variable: variable.Variable,
)
}
Constructors
-
GetVariableData( attribute_type: option.Option(attribute.Attribute), component: component.Component, custom_data: option.Option(custom_data.CustomData), variable: variable.Variable, )
Values
pub fn decoder() -> decode.Decoder(GetVariableData)
Decode a GetVariableData from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(
component component: component.Component,
variable variable: variable.Variable,
) -> GetVariableData
Construct a GetVariableData from its required fields, with every optional field set to None.
pub fn to_json(value: GetVariableData) -> json.Json
Encode a GetVariableData to its OCPP-J JSON object.