Expand description
UPPERCASE hex variant of the parent module.
Use as #[serde(with = "serde_human_bytes::upper")] when the wire format
requires uppercase hex (e.g. Intel SGX/TDX PCCS payloads). Identical to
the parent module for non-human-readable formats (still emits a compact
byte sequence) and for deserialization (still case-insensitive).
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
struct Identity {
#[serde(with = "serde_human_bytes::upper")]
mrsigner: [u8; 32],
}Functions§
- deserialize
- Serde
deserialize_withfunction — case-insensitive hex. - serialize
- Serde
serialize_withfunction emitting UPPERCASE hex.