ocpp/v2_1/datatype/constant_stream_data

OCPP 2.1 ConstantStreamData data type (schema ConstantStreamDataType).

to_json/decoder map to/from its OCPP-J JSON object; new (when present) builds a value from the required fields only.

Types

FieldTypeReqDescription
custom_dataCustomData
idIntUniquely identifies the stream (≥ 0)
paramsPeriodicEventStreamParams
variable_monitoring_idIntId of monitor used to report his event. It can be a preconfigured or hardwired monitor. (≥ 0)

Schema: ConstantStreamDataType

pub type ConstantStreamData {
  ConstantStreamData(
    custom_data: option.Option(custom_data.CustomData),
    id: Int,
    params: periodic_event_stream_params.PeriodicEventStreamParams,
    variable_monitoring_id: Int,
  )
}

Constructors

Values

pub fn decoder() -> decode.Decoder(ConstantStreamData)

Decode a ConstantStreamData from its OCPP-J JSON object, enforcing schema constraints.

pub fn new(
  id id: Int,
  params params: periodic_event_stream_params.PeriodicEventStreamParams,
  variable_monitoring_id variable_monitoring_id: Int,
) -> ConstantStreamData

Construct a ConstantStreamData from its required fields, with every optional field set to None.

pub fn to_json(value: ConstantStreamData) -> json.Json

Encode a ConstantStreamData to its OCPP-J JSON object.

Search Document