pub struct UnityAssetReference {
pub file_id: u32,
pub guid: String,
pub ty: u8,
}Expand description
Represents a reference to a single asset file. Contains file ID that determines asset type, GUID, and the type
Fields§
§file_id: u32§guid: String§ty: u8Trait Implementations§
Source§impl Clone for UnityAssetReference
impl Clone for UnityAssetReference
Source§impl Debug for UnityAssetReference
impl Debug for UnityAssetReference
Source§impl<'de> Deserialize<'de> for UnityAssetReference
impl<'de> Deserialize<'de> for UnityAssetReference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<UnityAssetReference> for UnityTexture
impl From<UnityAssetReference> for UnityTexture
Source§fn from(value: UnityAssetReference) -> Self
fn from(value: UnityAssetReference) -> Self
Converts to this type from the input type.
Source§impl From<UnityAssetReference> for UnityTexture2D
impl From<UnityAssetReference> for UnityTexture2D
Source§fn from(value: UnityAssetReference) -> Self
fn from(value: UnityAssetReference) -> Self
Converts to this type from the input type.
Source§impl From<UnityAssetReference> for UnityMaterial
impl From<UnityAssetReference> for UnityMaterial
Source§fn from(value: UnityAssetReference) -> Self
fn from(value: UnityAssetReference) -> Self
Converts to this type from the input type.
Source§impl From<UnityAssetReference> for UnitySprite
impl From<UnityAssetReference> for UnitySprite
Source§fn from(value: UnityAssetReference) -> Self
fn from(value: UnityAssetReference) -> Self
Converts to this type from the input type.
Source§impl Into<UnityAssetReference> for &UnityTexture
impl Into<UnityAssetReference> for &UnityTexture
Source§fn into(self) -> UnityAssetReference
fn into(self) -> UnityAssetReference
Converts this type into the (usually inferred) input type.
Source§impl Into<UnityAssetReference> for &UnityTexture2D
impl Into<UnityAssetReference> for &UnityTexture2D
Source§fn into(self) -> UnityAssetReference
fn into(self) -> UnityAssetReference
Converts this type into the (usually inferred) input type.
Source§impl Into<UnityAssetReference> for &UnityMaterial
impl Into<UnityAssetReference> for &UnityMaterial
Source§fn into(self) -> UnityAssetReference
fn into(self) -> UnityAssetReference
Converts this type into the (usually inferred) input type.
Source§impl Into<UnityAssetReference> for &UnitySprite
impl Into<UnityAssetReference> for &UnitySprite
Source§fn into(self) -> UnityAssetReference
fn into(self) -> UnityAssetReference
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for UnityAssetReference
impl RefUnwindSafe for UnityAssetReference
impl Send for UnityAssetReference
impl Sync for UnityAssetReference
impl Unpin for UnityAssetReference
impl UnsafeUnpin for UnityAssetReference
impl UnwindSafe for UnityAssetReference
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