#[repr(transparent)]pub struct TypeId(pub Uuid);Expand description
Introspection type id of a service, struct or enum.
Tuple Fields§
§0: UuidImplementations§
Source§impl TypeId
impl TypeId
pub fn compute<T: Introspectable + ?Sized>() -> Self
pub fn compute_from_dyn(ty: DynIntrospectable) -> Self
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for TypeId
impl<'arbitrary> Arbitrary<'arbitrary> for TypeId
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl<'de> Deserialize<'de> for TypeId
impl<'de> Deserialize<'de> for TypeId
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 Deserialize<TypeId> for TypeId
impl Deserialize<TypeId> for TypeId
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl Deserialize<Uuid> for TypeId
impl Deserialize<Uuid> for TypeId
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl DeserializeKey<TypeId> for TypeId
impl DeserializeKey<TypeId> for TypeId
fn try_from_key(key: Uuid) -> Result<Self, DeserializeError>
Source§impl DeserializeKey<Uuid> for TypeId
impl DeserializeKey<Uuid> for TypeId
fn try_from_key(key: Uuid) -> Result<Self, DeserializeError>
Source§impl Introspectable for TypeId
Available on crate feature introspection only.
impl Introspectable for TypeId
Available on crate feature
introspection only.fn layout() -> LayoutIr
fn lexical_id() -> LexicalId
fn add_references(_references: &mut References<'_>)
Source§impl Ord for TypeId
impl Ord for TypeId
Source§impl PartialOrd for TypeId
impl PartialOrd for TypeId
Source§impl Serialize<TypeId> for &TypeId
impl Serialize<TypeId> for &TypeId
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
Source§impl Serialize<TypeId> for TypeId
impl Serialize<TypeId> for TypeId
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
Source§impl Serialize<Uuid> for &TypeId
impl Serialize<Uuid> for &TypeId
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
Source§impl Serialize<Uuid> for TypeId
impl Serialize<Uuid> for TypeId
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
Source§impl SerializeKey<TypeId> for TypeId
impl SerializeKey<TypeId> for TypeId
fn try_as_key(&self) -> Result<Uuid, SerializeError>
Source§impl SerializeKey<Uuid> for TypeId
impl SerializeKey<Uuid> for TypeId
fn try_as_key(&self) -> Result<Uuid, SerializeError>
impl Copy for TypeId
impl Eq for TypeId
impl StructuralPartialEq for TypeId
impl Tag for TypeId
Auto Trait Implementations§
impl Freeze for TypeId
impl RefUnwindSafe for TypeId
impl Send for TypeId
impl Sync for TypeId
impl Unpin for TypeId
impl UnwindSafe for TypeId
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)