ocpp/v1_6/datatype/certificate_hash_data

OCPP 1.6 CertificateHashData 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

FieldTypeReqDescription
hash_algorithmHashAlgorithm
issuer_key_hashString(max 128 chars)
issuer_name_hashString(max 128 chars)
serial_numberString(max 40 chars)

Schema: CertificateHashData

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

Constructors

  • CertificateHashData(
      hash_algorithm: hash_algorithm.HashAlgorithm,
      issuer_key_hash: String,
      issuer_name_hash: String,
      serial_number: String,
    )

Values

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

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

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

Encode a CertificateHashData to its OCPP-J JSON object.

Search Document