pub struct Id<T: ?Sized> { /* private fields */ }Implementations§
Source§impl<T: ?Sized> Id<T>
impl<T: ?Sized> Id<T>
pub fn as_aid(&self) -> &Aid
Available on crate feature
aid only.pub fn as_meid(&self) -> &Meid
Available on crate feature
meid only.pub fn as_ulid(&self) -> &Ulid
Available on crate feature
ulid only.pub fn as_object_id(&self) -> &ObjectId
Available on crate feature
objectid only.Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Id<T>
impl<'de, T> Deserialize<'de> for Id<T>
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<E: Entity> EntityRef<E> for &Id<E>
impl<E: Entity> EntityRef<E> for &Id<E>
Source§fn entity_ref(&self) -> Id<E>
fn entity_ref(&self) -> Id<E>
Gets the reference to the entity.
Source§impl<E: Entity> EntityRef<E> for Id<E>
impl<E: Entity> EntityRef<E> for Id<E>
Source§fn entity_ref(&self) -> Id<E>
fn entity_ref(&self) -> Id<E>
Gets the reference to the entity.
Source§impl<T> Ord for Id<T>
impl<T> Ord for Id<T>
Source§impl<T> PartialOrd for Id<T>
impl<T> PartialOrd for Id<T>
impl<T> Copy for Id<T>
impl<T> Eq for Id<T>
Auto Trait Implementations§
impl<T> Freeze for Id<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Id<T>where
T: ?Sized,
impl<T> Send for Id<T>where
T: ?Sized,
impl<T> Sync for Id<T>where
T: ?Sized,
impl<T> Unpin for Id<T>where
T: ?Sized,
impl<T> UnwindSafe for Id<T>where
T: ?Sized,
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