pub fn encode_snapshot_with_options( snapshot: &Snapshot, options: EncodeOptions, ) -> Result<Vec<u8>, EncodeError>