ocpp/v2_0_1/datatype/log_parameters
OCPP 2.0.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.
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
latest_timestamp | DateTime | — | This contains the date and time of the latest logging information to include in the diagnostics. |
oldest_timestamp | DateTime | — | This contains the date and time of the oldest logging information to include in the diagnostics. |
remote_location | String | ✓ | The URL of the location at the remote system where the log should be stored. (max 512 chars) |
Schema: LogParametersType · Log · urn:x-enexis:ecdm:uid:2:233373
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
-
LogParameters( custom_data: option.Option(custom_data.CustomData), latest_timestamp: option.Option(timestamp.Timestamp), oldest_timestamp: option.Option(timestamp.Timestamp), remote_location: String, )
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.