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
| Field | Type | Req | Description |
|---|---|---|---|
latest_timestamp | DateTime | — | |
oldest_timestamp | DateTime | — | |
remote_location | String | ✓ | (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
-
LogParameters( 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.