pub fn serialize_into_with_limit<W, T>(
    write: &mut W,
    value: &T,
    limit: usize
) -> Result<()>
where W: ?Sized + Write, T: ?Sized + Serialize,
Expand description

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