Expand description
Types related to working with DataType
. Exposed for advanced users.
Modules§
- Helpers for generating Type::reference implementations.
Structs§
- A reference to a
DataType
that can be used before a type is resolved in order to support recursive types without causing an infinite loop. - Enum type which dictates how the enum is represented.
- Contains type information about a function annotated with
specta
. Returned by [fn_datatype
]. - A generic (“placeholder”) argument to a Specta-enabled type.
- A named type represents a non-primitive type capable of being exported as it’s own named entity.
- A NamedDataTypeImpl includes extra information which is only available for NamedDataType’s that come from a real Rust type.
- The fields for a [StructType] or the anonymous struct declaration in an [EnumVariant].
- A regular tuple
Enums§
- Runtime type-erased representation of a Rust type.
- Serde representation of an enum.
- Type of an
EnumType
variant. - The type of a function’s return type.
- Type of a literal value for things like const generics.
- Type of primitives like numbers and strings.