ocpp/v2_1/datatype/log_parameters

OCPP 2.1 LogParameters data type (schema LogParametersType).

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

Types

Generic class for the configuration of logging entries.

FieldTypeReqDescription
custom_dataCustomData
latest_timestampDateTimeThis contains the date and time of the latest logging information to include in the diagnostics.
oldest_timestampDateTimeThis contains the date and time of the oldest logging information to include in the diagnostics.
remote_locationStringThe URL of the location at the remote system where the log should be stored. (max 2000 chars)

Schema: LogParametersType

pub type LogParameters {
  LogParameters(
    custom_data: option.Option(custom_data.CustomData),
    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