pub fn serialized_size_with_limit<T>(value: &T, limit: usize) -> Result<usize>
where T: ?Sized + Serialize,
Expand description

Same as serialized_size but use limit as max container depth instead of MAX_CONTAINER_DEPTH Note that limit has to be lower than MAX_CONTAINER_DEPTH