pub struct DbPtr<T>where
T: Object,{
pub id: Ulid,
/* private fields */
}
Fields§
§id: Ulid
Implementations§
Trait Implementations§
Source§impl<T> DeepSizeOf for DbPtr<T>where
T: Object,
impl<T> DeepSizeOf for DbPtr<T>where
T: Object,
Source§fn deep_size_of_children(&self, _context: &mut Context) -> usize
fn deep_size_of_children(&self, _context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
Source§impl<'de, T> Deserialize<'de> for DbPtr<T>where
T: Object,
impl<'de, T> Deserialize<'de> for DbPtr<T>where
T: Object,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DbPtr<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DbPtr<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Ord for DbPtr<T>
impl<T> Ord for DbPtr<T>
Source§impl<T> PartialOrd for DbPtr<T>
impl<T> PartialOrd for DbPtr<T>
Source§impl<T> Serialize for DbPtr<T>where
T: Object,
impl<T> Serialize for DbPtr<T>where
T: Object,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> Copy for DbPtr<T>where
T: Object,
impl<T> Eq for DbPtr<T>
impl<T> StructuralPartialEq for DbPtr<T>where
T: Object,
Auto Trait Implementations§
impl<T> Freeze for DbPtr<T>
impl<T> RefUnwindSafe for DbPtr<T>where
T: RefUnwindSafe,
impl<T> Send for DbPtr<T>
impl<T> Sync for DbPtr<T>
impl<T> Unpin for DbPtr<T>where
T: Unpin,
impl<T> UnwindSafe for DbPtr<T>where
T: 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