#[repr(transparent)]pub struct UniqueTag(pub Uuid);Expand description
A type-safe wrapper around uuid::Uuid for storing unique type identifiers.
UniqueTag provides a way to associate stable, unique identifiers with types.
It uses a UUID internally to ensure global uniqueness while maintaining
type safety through its wrapper type.
§Representation
The struct is marked with #[repr(transparent)] to ensure it has the same
memory layout as the underlying UUID, making it efficient to store and pass.
§Serialization
When the serde feature is enabled, this type implements Serialize and
Deserialize for compatibility with serde-based serialization formats.
Tuple Fields§
§0: UuidTrait Implementations§
Source§impl<'de> Deserialize<'de> for UniqueTag
impl<'de> Deserialize<'de> for UniqueTag
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 Ord for UniqueTag
impl Ord for UniqueTag
Source§impl PartialOrd for UniqueTag
impl PartialOrd for UniqueTag
impl Copy for UniqueTag
impl Eq for UniqueTag
impl StructuralPartialEq for UniqueTag
Auto Trait Implementations§
impl Freeze for UniqueTag
impl RefUnwindSafe for UniqueTag
impl Send for UniqueTag
impl Sync for UniqueTag
impl Unpin for UniqueTag
impl UnwindSafe for UniqueTag
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