pub struct Id<T, Version>(/* private fields */);
Expand description
Typed wrapper around a Uuid
, supports same versions of Uuid as the uuid
crate trough the Version
parameter.
Implementations§
Trait Implementations§
Source§impl<'de, T, Version> Deserialize<'de> for Id<T, Version>
impl<'de, T, Version> Deserialize<'de> for Id<T, Version>
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<T: Ord, Version: Ord> Ord for Id<T, Version>
impl<T: Ord, Version: Ord> Ord for Id<T, Version>
Source§impl<T: PartialOrd, Version: PartialOrd> PartialOrd for Id<T, Version>
impl<T: PartialOrd, Version: PartialOrd> PartialOrd for Id<T, Version>
impl<T, Version> Copy for Id<T, Version>
impl<T: Eq, Version: Eq> Eq for Id<T, Version>
Auto Trait Implementations§
impl<T, Version> Freeze for Id<T, Version>
impl<T, Version> RefUnwindSafe for Id<T, Version>where
T: RefUnwindSafe,
Version: RefUnwindSafe,
impl<T, Version> Send for Id<T, Version>
impl<T, Version> Sync for Id<T, Version>
impl<T, Version> Unpin for Id<T, Version>
impl<T, Version> UnwindSafe for Id<T, Version>where
T: UnwindSafe,
Version: UnwindSafe,
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