Struct spacetimedb_lib::TableDesc
source · pub struct TableDesc {
pub schema: TableDef,
pub data: AlgebraicTypeRef,
}Fields§
§schema: TableDef§data: AlgebraicTypeRefdata should always point to a ProductType in the typespace
Implementations§
source§impl TableDesc
impl TableDesc
pub fn into_table_def(table: WithTypespace<'_, TableDesc>) -> Result<TableDef>
Trait Implementations§
source§impl<'de> Deserialize<'de> for TableDesc
impl<'de> Deserialize<'de> for TableDesc
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 TableDesc
impl Ord for TableDesc
source§impl PartialEq for TableDesc
impl PartialEq for TableDesc
source§impl PartialOrd for TableDesc
impl PartialOrd for TableDesc
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 TableDesc
impl StructuralPartialEq for TableDesc
Auto Trait Implementations§
impl RefUnwindSafe for TableDesc
impl Send for TableDesc
impl Sync for TableDesc
impl Unpin for TableDesc
impl UnwindSafe for TableDesc
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Satn for T
impl<T> Satn for T
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.