Crate spacetimedb_sats
source ·Re-exports§
pub use algebraic_type::AlgebraicType;pub use algebraic_value::AlgebraicValue;pub use algebraic_value::F32;pub use algebraic_value::F64;pub use array_type::ArrayType;pub use array_value::ArrayValue;pub use builtin_type::BuiltinType;pub use data_key::DataKey;pub use data_key::ToDataKey;pub use map_type::MapType;pub use map_value::MapValue;pub use product_type::ProductType;pub use product_type_element::ProductTypeElement;pub use product_value::ProductValue;pub use sum_type::SumType;pub use sum_type_variant::SumTypeVariant;pub use sum_value::SumValue;pub use typespace::SpacetimeType;pub use typespace::Typespace;
Modules§
- Minimal utility for reading & writing the types we need to internal storage, without relying on types in third party libraries like
bytes::Bytes, etc. Meant to be kept slim and trim for use across both native and WASM. - Defines all the typed database objects & schemas.
- Allocation-free hex formatting.
- Provides the
MetaTypetrait.
Macros§
- Implements
Deserializefor a type in a simplified manner. - Implements
Serializefor a type in a simplified manner. - Implements
SpacetimeTypefor a type in a simplified manner. - Constructs a product value from a list of fields with syntax
product![v1, v2, ...].
Structs§
- A reference to an
AlgebraicTypewithin aTypespace. - A borrowed value combined with its type and typing context (
Typespace). - Adds a
Typespacecontext atop of a borrowed type.
Traits§
- The
Valuetrait provides an abstract notion of a value.