ocpp/v2_1/datatype/get_variable_data

OCPP 2.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.

FieldTypeReqDescription
attribute_typeAttribute
componentComponent
custom_dataCustomData
variableVariable

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

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.

Search Document