Struct hydrate_base::AssetId
source · 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() -> Self
pub fn parse_str(input: &str) -> Result<Self, Error>
pub fn is_null(&self) -> bool
pub fn from_uuid(uuid: Uuid) -> Self
pub fn as_uuid(&self) -> Uuid
pub fn from_u128(u: u128) -> Self
pub fn as_u128(&self) -> u128
pub fn from_bytes(bytes: Bytes) -> Self
pub fn as_bytes(&self) -> &Bytes
Trait Implementations§
source§impl<'de> Deserialize<'de> for AssetId
impl<'de> Deserialize<'de> for AssetId
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for AssetId
impl Ord for AssetId
source§impl PartialEq for AssetId
impl PartialEq for AssetId
source§impl PartialOrd for AssetId
impl PartialOrd for AssetId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AssetId
impl Eq for AssetId
impl StructuralPartialEq for AssetId
Auto Trait Implementations§
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