pub struct AssetEntry {
pub guid: u128,
pub asset_type: AssetType,
pub name: Box<str>,
pub sub_assets: Vec<SubAsset>,
pub hint: Box<str>,
}Expand description
One top-level Unity asset, as stored in the convert artifact.
name is the asset’s filename stem (with optional collision suffix).
At convert time it’s prefixed with $ to form a JSON ref ($Foo),
but the prefix is purely a JSON encoding convention — never stored.
String fields use Box<str> (immutable; saves the 8-byte capacity
field a String carries for growability).
Fields§
§guid: u128§asset_type: AssetType§name: Box<str>§sub_assets: Vec<SubAsset>§hint: Box<str>Project-root-relative path (Assets/Foo.prefab,
Packages/com.boxcat.libs/Bar.mixer). Convert-side uses this so
SourcePrefabResolver can locate base prefabs by guid without
re-walking the project tree.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for AssetEntry
impl<'__de, __Context> BorrowDecode<'__de, __Context> for AssetEntry
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for AssetEntry
impl Clone for AssetEntry
Source§fn clone(&self) -> AssetEntry
fn clone(&self) -> AssetEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetEntry
impl Debug for AssetEntry
Source§impl<__Context> Decode<__Context> for AssetEntry
impl<__Context> Decode<__Context> for AssetEntry
Auto Trait Implementations§
impl Freeze for AssetEntry
impl RefUnwindSafe for AssetEntry
impl Send for AssetEntry
impl Sync for AssetEntry
impl Unpin for AssetEntry
impl UnsafeUnpin for AssetEntry
impl UnwindSafe for AssetEntry
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