ocpp/v1_6/datatype/log_parameters

OCPP 1.6 LogParameters 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

FieldTypeReqDescription
latest_timestampDateTime
oldest_timestampDateTime
remote_locationString(max 512 chars)

Schema: LogParameters

pub type LogParameters {
  LogParameters(
    latest_timestamp: option.Option(timestamp.Timestamp),
    oldest_timestamp: option.Option(timestamp.Timestamp),
    remote_location: String,
  )
}

Constructors

Values

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

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

pub fn new(
  remote_location remote_location: String,
) -> LogParameters

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

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

Encode a LogParameters to its OCPP-J JSON object.

Search Document