Skip to main content

SerializedSaveSnapshot

Struct SerializedSaveSnapshot 

Source
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: SerializedHeader

Current 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: bool

Whether type records carry trees.

§big_id_enabled: i32

Pre-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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.