Skip to main content

Module serde_base64

Module serde_base64 

Source
Expand description

Serde adapter: Vec<u8> ↔ base64 string.

Raw byte payloads (pasted images, tool artifacts) ride inside recorded Msg JSON for --record / --replay. Serde’s default Vec<u8> representation is an array of numbers — ~4x the size and unreadable in a JSONL line; base64 keeps recordings compact while still round-tripping bit-exactly.

Use with #[serde(with = "crate::utils::serde_base64")] on a Vec<u8> field.

Modules§

string
Base64 serde adapter for opaque UTF-8 strings. The wire value is encoded before persistence redaction sees it, then validated as UTF-8 while loading.

Functions§

deserialize
serialize