pub struct Table {
pub rust_struct: RustStruct,
pub spacetimedb_table: SpacetimeDBTable,
pub spacetimedsl_table: SpacetimeDSLTable,
pub columns: Vec<Column>,
pub primary_key_column: Column,
pub spacetimedsl_methods: SpacetimeDSLTableMethods,
}Expand description
The representation of a Rust struct with #[table] and #[dsl] attribute macros and its columns.
Fields§
§rust_struct: RustStruct§spacetimedb_table: SpacetimeDBTable§spacetimedsl_table: SpacetimeDSLTable§columns: Vec<Column>§primary_key_column: Column§spacetimedsl_methods: SpacetimeDSLTableMethodsImplementations§
Source§impl Table
impl Table
Sourcepub fn try_parse(args: TokenStream, input: &DeriveInput) -> Result<Table>
pub fn try_parse(args: TokenStream, input: &DeriveInput) -> Result<Table>
Supply the &DeriveInput which you’ve got from your own derive macro to this function to build upon your SpacetimeDB rust server module with SpacetimeDSL.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl !Send for Table
impl !Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more