Skip to main content

metadata_bytes

Function metadata_bytes 

Source
pub fn metadata_bytes(meta: &Metadata) -> usize
Expand description

The serialized JSON size of meta, in bytes. Returns usize::MAX if the map somehow fails to serialize (it never should — Metadata is always valid JSON), so a serialization hiccup fails a size check closed rather than silently passing an unmeasured payload.