ocpp/v2_0_1/datatype/certificate_hash_data

OCPP 2.0.1 CertificateHashData data type (schema CertificateHashDataType).

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
hash_algorithmHashAlgorithm
issuer_key_hashStringHashed value of the issuers public key (max 128 chars)
issuer_name_hashStringHashed value of the Issuer DN (Distinguished Name). (max 128 chars)
serial_numberStringThe serial number of the certificate. (max 40 chars)

Schema: CertificateHashDataType

pub type CertificateHashData {
  CertificateHashData(
    custom_data: option.Option(custom_data.CustomData),
    hash_algorithm: hash_algorithm.HashAlgorithm,
    issuer_key_hash: String,
    issuer_name_hash: String,
    serial_number: String,
  )
}

Constructors

Values

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

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

pub fn new(
  hash_algorithm hash_algorithm: hash_algorithm.HashAlgorithm,
  issuer_key_hash issuer_key_hash: String,
  issuer_name_hash issuer_name_hash: String,
  serial_number serial_number: String,
) -> CertificateHashData

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

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

Encode a CertificateHashData to its OCPP-J JSON object.

Search Document