ocpp/v2_1/datatype/vpn_type
OCPP 2.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
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
group | String | — | VPN group. (max 50 chars) |
key | String | ✓ | VPN shared secret. (max 255 chars) |
password | String | ✓ | (2.1) VPN Password. (max 64 chars) |
server | String | ✓ | VPN Server Address (max 2000 chars) |
type_ | Vpn | ✓ | |
user | String | ✓ | VPN User (max 50 chars) |
Schema: VPNType
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
-
VpnType( custom_data: option.Option(custom_data.CustomData), group: option.Option(String), key: String, password: String, server: String, type_: vpn.Vpn, user: String, )
Values
pub fn decoder() -> decode.Decoder(VpnType)
Decode a VpnType from its OCPP-J JSON object, enforcing schema constraints.