Skip to main content

Module vec_byte_array16

Module vec_byte_array16 

Source
Expand description

Serde adapter for Vec<[u8; 16]> of UUID-shaped wire ids: each id encodes as its own CBOR byte string (major type 2) inside an array.

serde_bytes flattens a single contiguous buffer, so a vector of distinct 16-byte ids must keep each element framed separately. Use via #[serde(with = "vec_byte_array16")].

Functionsยง

deserialize
Read a CBOR sequence of 16-byte strings back into fixed-size arrays.
serialize
Write each id as its own CBOR byte string, framed separately.