ocpp/v2_1/enum/hash_algorithm

OCPP 2.1 HashAlgorithm enumeration (schema HashAlgorithmEnumType).

to_json/decoder map each constructor to/from its exact schema token.

Types

Used algorithms for the hashes provided.

pub type HashAlgorithm {
  Sha256
  Sha384
  Sha512
}

Constructors

  • Sha256
  • Sha384
  • Sha512

Values

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

Decode a HashAlgorithm from its exact schema token.

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

Encode a HashAlgorithm to its exact schema token.

Search Document