Function bcs::to_bytes_with_limit
source ยท pub fn to_bytes_with_limit<T>(value: &T, limit: usize) -> Result<Vec<u8>>
Expand description
Same as to_bytes
but use limit
as max container depth instead of MAX_CONTAINER_DEPTH
Note that limit
has to be lower than MAX_CONTAINER_DEPTH