ocpp/v2_1/datatype/periodic_event_stream_params
OCPP 2.1 PeriodicEventStreamParams data type (schema PeriodicEventStreamParamsType).
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 | — | |
interval | Int | — | Time in seconds after which stream data is sent. (≥ 0) |
values | Int | — | Number of items to be sent together in stream. (≥ 0) |
Schema: PeriodicEventStreamParamsType
pub type PeriodicEventStreamParams {
PeriodicEventStreamParams(
custom_data: option.Option(custom_data.CustomData),
interval: option.Option(Int),
values: option.Option(Int),
)
}
Constructors
-
PeriodicEventStreamParams( custom_data: option.Option(custom_data.CustomData), interval: option.Option(Int), values: option.Option(Int), )
Values
pub fn decoder() -> decode.Decoder(PeriodicEventStreamParams)
Decode a PeriodicEventStreamParams from its OCPP-J JSON object, enforcing schema constraints.
pub fn new() -> PeriodicEventStreamParams
Construct a PeriodicEventStreamParams from its required fields, with every optional field set to None.
pub fn to_json(value: PeriodicEventStreamParams) -> json.Json
Encode a PeriodicEventStreamParams to its OCPP-J JSON object.