Struct spacetimedb_lib::TableDef
source · pub struct TableDef {
pub name: String,
pub data: AlgebraicTypeRef,
pub column_attrs: Vec<ColumnIndexAttribute>,
pub indexes: Vec<IndexDef>,
pub table_type: StTableType,
pub table_access: StAccess,
}Fields§
§name: String§data: AlgebraicTypeRefdata should always point to a ProductType in the typespace
column_attrs: Vec<ColumnIndexAttribute>§indexes: Vec<IndexDef>§table_type: StTableType§table_access: StAccessTrait Implementations§
source§impl<'de> Deserialize<'de> for TableDef
impl<'de> Deserialize<'de> for TableDef
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given
deserializer.source§impl Ord for TableDef
impl Ord for TableDef
source§impl PartialEq<TableDef> for TableDef
impl PartialEq<TableDef> for TableDef
source§impl PartialOrd<TableDef> for TableDef
impl PartialOrd<TableDef> for TableDef
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for TableDef
impl StructuralEq for TableDef
impl StructuralPartialEq for TableDef
Auto Trait Implementations§
impl RefUnwindSafe for TableDef
impl Send for TableDef
impl Sync for TableDef
impl Unpin for TableDef
impl UnwindSafe for TableDef
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> Satn for Twhere
T: Serialize + ?Sized,
impl<T> Satn for Twhere T: Serialize + ?Sized,
source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the SATN data format into the formatter
f.source§fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the postgres SATN data format into the formatter
f.source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned
String.source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
Pretty prints the value using the SATN data format into the returned
String.