ocpp/v2_1/datatype/enter_service_get

OCPP 2.1 EnterServiceGet data type (schema EnterServiceGetType).

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

Types

FieldTypeReqDescription
custom_dataCustomData
enter_serviceEnterService
idStringId of setting (max 36 chars)

Schema: EnterServiceGetType

pub type EnterServiceGet {
  EnterServiceGet(
    custom_data: option.Option(custom_data.CustomData),
    enter_service: enter_service.EnterService,
    id: String,
  )
}

Constructors

Values

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

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

pub fn new(
  enter_service enter_service: enter_service.EnterService,
  id id: String,
) -> EnterServiceGet

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

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

Encode a EnterServiceGet to its OCPP-J JSON object.

Search Document