pub struct ResourceId(pub Uuid);
Expand description
Wrapper type around [Uuid
], represents the ID of a Resource.
Tuple Fields§
§0: Uuid
Implementations§
Trait Implementations§
Source§impl Clone for ResourceId
impl Clone for ResourceId
Source§fn clone(&self) -> ResourceId
fn clone(&self) -> ResourceId
Returns a copy of the value. Read more
1.0.0 · 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 ResourceId
impl Debug for ResourceId
Source§impl<'de> Deserialize<'de> for ResourceId
impl<'de> Deserialize<'de> for ResourceId
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 Display for ResourceId
impl Display for ResourceId
Source§impl From<ResourceId> for AssetId
impl From<ResourceId> for AssetId
Source§fn from(resource_id: ResourceId) -> Self
fn from(resource_id: ResourceId) -> Self
Converts to this type from the input type.
Source§impl From<ResourceId> for Uuid
impl From<ResourceId> for Uuid
Source§fn from(t: ResourceId) -> Self
fn from(t: ResourceId) -> Self
Converts to this type from the input type.
Source§impl FromStr for ResourceId
impl FromStr for ResourceId
Source§impl Hash for ResourceId
impl Hash for ResourceId
Source§impl PartialEq for ResourceId
impl PartialEq for ResourceId
Source§impl PathPart for ResourceId
impl PathPart for ResourceId
Source§fn get_path_string(&self) -> String
fn get_path_string(&self) -> String
string value to replace placeholder with
Source§impl Serialize for ResourceId
impl Serialize for ResourceId
impl Copy for ResourceId
impl Eq for ResourceId
impl StructuralPartialEq for ResourceId
Auto Trait Implementations§
impl Freeze for ResourceId
impl RefUnwindSafe for ResourceId
impl Send for ResourceId
impl Sync for ResourceId
impl Unpin for ResourceId
impl UnwindSafe for ResourceId
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