Function bcs::to_bytes_with_limit
source · pub fn to_bytes_with_limit<T>(value: &T, limit: usize) -> Result<Vec<u8>>where
T: ?Sized + Serialize,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