Crate spacetimedb_lib
source ·Re-exports§
pub use address::Address;
pub use identity::Identity;
pub use scheduler::ScheduleAt;
pub use spacetimedb_sats as sats;
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.
- Operators are implemented as “alias” of functions that are loaded at the start of the [ProgramVm] creation, ie:
Structs§
- A builder for a [
ModuleDef
]. - A structural product type of the factors given by
elements
. - A factor / element of a product type.
- A product value is made of a list of “elements” / “fields” / “factors” of other
AlgebraicValue
s. - A structural sum type.
Enums§
- The SpacetimeDB Algebraic Type System (SATS) is a structural type system in which a nominal type system can be constructed.
- A value in SATS typed at some
AlgebraicType
. - A versioned raw module definition.
Constants§
Traits§
- A trait for types that can be represented as an
AlgebraicType
provided a typing contexttypespace
.
Functions§
- Converts a hexadecimal string reference to a byte array.