Re-exports§
pub use connection_id::ConnectionId;pub use identity::Identity;pub use scheduler::ScheduleAt;pub use spacetimedb_sats as sats;
Modules§
- bsatn
- buffer
- 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. - connection_
id - db
- Defines all the typed database objects & schemas.
- de
- error
- hash
- identity
- metrics
- operator
- Operator support for the query macro.
- query
- scheduler
- ser
- st_var
- type_
def - type_
value - version
Structs§
- Hash
- Module
DefBuilder - A builder for a
RawModuleDefV8. Deprecated. - Product
Type - A structural product type of the factors given by
elements. - Product
Type Element - A factor / element of a product type.
- Product
Value - A product value is made of a list of
“elements” / “fields” / “factors” of other
AlgebraicValues. - RawModule
DefV8 - Reducer
Def - SumType
- A structural sum type.
- Table
Desc - Time
Duration - A span or delta in time, measured in microseconds.
- Timestamp
- A point in time, measured in microseconds since the Unix epoch.
- Type
Alias - Version
Tuple
Enums§
- Algebraic
Type - The SpacetimeDB Algebraic Type System (SATS) is a structural type system in which a nominal type system can be constructed.
- Algebraic
Value - A value in SATS typed at some
AlgebraicType. - Misc
Module Export - RawModule
Def - A versioned raw module definition.
- Term
Bound
Constants§
Traits§
- Direct
Index Key - Filterable
Value - Types which can appear as an argument to an index filtering operation
for a column of type
Column. - Index
Scan Range Bounds Terminator - Spacetime
Type - This trait makes types self-describing, allowing them to automatically register their structure with SpacetimeDB. This is used to tell SpacetimeDB about the structure of a module’s tables and reducers.
Functions§
- assert_
column_ type_ valid_ for_ direct_ index - Assert that
Tis a valid column to use direct index on. - from_
hex_ pad - Converts a hexadecimal string reference to a byte array.
- hash_
bytes - resolved_
type_ via_ v9 - Returns a resolved
AlgebraicType(containing noAlgebraicTypeRefs) for a givenSpacetimeType, using the v9 moduledef infrastructure. Panics if the type is recursive.