pub struct SerializedSaveSnapshot<'a> {
pub header: SerializedHeader,
pub unity_version: Option<RawStr>,
pub target_platform: Option<i32>,
pub enable_type_tree: bool,
pub big_id_enabled: i32,
pub objects: &'a [(ObjectInfo, Bytes)],
pub externals: &'a [External],
pub user_information: Option<RawStr>,
}Expand description
Caller-owned metadata and object payload snapshot. All retained storage must be charged by the caller before constructing it. Object rows are emitted in supplied order, including repeated path ids; dictionary keys are irrelevant.
Fields§
§header: SerializedHeaderCurrent header (sizes and offsets are recomputed).
unity_version: Option<RawStr>Current Unity version string.
target_platform: Option<i32>Current raw build target.
enable_type_tree: boolWhether type records carry trees.
big_id_enabled: i32Pre-format-14 path-id width switch.
objects: &'a [(ObjectInfo, Bytes)]Current object metadata and payloads, sorted by signed path id. Each
row’s byte_size is its logical payload length, which may differ from
the buffer’s byte count (Python’s len(data) versus nbytes).
externals: &'a [External]Current external reference list, replacing loaded and pending entries.
user_information: Option<RawStr>Current user information string.
Auto Trait Implementations§
impl<'a> !Freeze for SerializedSaveSnapshot<'a>
impl<'a> !RefUnwindSafe for SerializedSaveSnapshot<'a>
impl<'a> !UnwindSafe for SerializedSaveSnapshot<'a>
impl<'a> Forget for SerializedSaveSnapshot<'a>
impl<'a> Move for SerializedSaveSnapshot<'a>
impl<'a> Send for SerializedSaveSnapshot<'a>
impl<'a> Sync for SerializedSaveSnapshot<'a>
impl<'a> Unpin for SerializedSaveSnapshot<'a>
impl<'a> UnsafeUnpin for SerializedSaveSnapshot<'a>
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