pub struct AssetId(pub Uuid);
Expand description
ID for a user-edited piece of data. It may have import data associated with it. Assets can be thought of as a list of properties that follow a particular schema.
Tuple Fields§
§0: Uuid
Implementations§
Source§impl AssetId
impl AssetId
pub const fn null() -> AssetId
pub fn parse_str(input: &str) -> Result<AssetId, Error>
pub fn is_null(&self) -> bool
pub fn from_uuid(uuid: Uuid) -> AssetId
pub fn as_uuid(&self) -> Uuid
pub fn from_u128(u: u128) -> AssetId
pub fn as_u128(&self) -> u128
pub fn from_bytes(bytes: [u8; 16]) -> AssetId
pub fn as_bytes(&self) -> &[u8; 16]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetId
impl<'de> Deserialize<'de> for AssetId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<AssetId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<AssetId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for AssetId
impl Ord for AssetId
Source§impl PartialOrd for AssetId
impl PartialOrd for AssetId
Source§impl Serialize for AssetId
impl Serialize for AssetId
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 AssetId
impl Eq for AssetId
impl StructuralPartialEq for AssetId
Auto Trait Implementations§
impl Freeze for AssetId
impl RefUnwindSafe for AssetId
impl Send for AssetId
impl Sync for AssetId
impl Unpin for AssetId
impl UnwindSafe for AssetId
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