pub struct SaveMetadata {
pub format_version: u32,
pub decompressed_size: u32,
pub compressed_size: u32,
pub profile_hash: u32,
pub spooky_hash: Option<[u64; 2]>,
pub sha256_hash: Option<[u8; 32]>,
pub decrypted_with_slot: StorageSlot,
}Expand description
Decrypted and parsed metadata from an mf_save*.hg file.
Fields§
§format_version: u32Format version: 0x7D1 (2001), 0x7D2 (2002), 0x7D3 (2003), 0x7D4 (2004).
decompressed_size: u32Decompressed JSON size in bytes.
compressed_size: u32Total compressed data size in bytes.
profile_hash: u32Profile hash (0 if none).
spooky_hash: Option<[u64; 2]>SpookyHash V2 keys (format 2001 only, None for 2002+).
sha256_hash: Option<[u8; 32]>SHA-256 of the raw storage file (format 2001 only, None for 2002+).
decrypted_with_slot: StorageSlotThe storage slot that successfully decrypted this metadata.
Trait Implementations§
Source§impl Clone for SaveMetadata
impl Clone for SaveMetadata
Source§fn clone(&self) -> SaveMetadata
fn clone(&self) -> SaveMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SaveMetadata
impl RefUnwindSafe for SaveMetadata
impl Send for SaveMetadata
impl Sync for SaveMetadata
impl Unpin for SaveMetadata
impl UnsafeUnpin for SaveMetadata
impl UnwindSafe for SaveMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more