ocpp/v2_0_1/datatype/vpn_type

OCPP 2.0.1 VpnType data type (schema VPNType).

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

Types

VPN Configuration settings

FieldTypeReqDescription
custom_dataCustomData
groupStringVPN group. (max 20 chars)
keyStringVPN shared secret. (max 255 chars)
passwordStringVPN Password. (max 20 chars)
serverStringVPN Server Address (max 512 chars)
type_Vpn
userStringVPN User (max 20 chars)

Schema: VPNType · VPN · urn:x-oca:ocpp:uid:2:233268

pub type VpnType {
  VpnType(
    custom_data: option.Option(custom_data.CustomData),
    group: option.Option(String),
    key: String,
    password: String,
    server: String,
    type_: vpn.Vpn,
    user: String,
  )
}

Constructors

Values

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

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

pub fn new(
  key key: String,
  password password: String,
  server server: String,
  type_ type_: vpn.Vpn,
  user user: String,
) -> VpnType

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

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

Encode a VpnType to its OCPP-J JSON object.

Search Document