pub struct AssetUuid(pub [u8; 16]);Expand description
A universally unique identifier for an asset.
An asset can be a value of any Rust type that implements
TypeUuidDynamic + serde::Serialize + Send.
If using a human-readable format, serializes to a hyphenated UUID format and deserializes from
any format supported by the uuid crate. Otherwise, serializes to and from a [u8; 16].
Tuple Fields§
§0: [u8; 16]Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetUuid
impl<'de> Deserialize<'de> for AssetUuid
Source§fn deserialize<D>(
deserializer: D,
) -> Result<AssetUuid, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AssetUuid, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for AssetUuid
impl Ord for AssetUuid
Source§impl PartialOrd for AssetUuid
impl PartialOrd for AssetUuid
Source§impl Serialize for AssetUuid
impl Serialize for AssetUuid
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for AssetUuid
impl Eq for AssetUuid
impl StructuralPartialEq for AssetUuid
Auto Trait Implementations§
impl Freeze for AssetUuid
impl RefUnwindSafe for AssetUuid
impl Send for AssetUuid
impl Sync for AssetUuid
impl Unpin for AssetUuid
impl UnwindSafe for AssetUuid
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