pub struct TableSchema { /* private fields */ }Expand description
Schema info for all synced tables: maps table name to column indices. Built
once before an apply and moved (owned) into the conflict closure, which must
be 'static.
Implementations§
Source§impl TableSchema
impl TableSchema
Sourcepub fn updated_at(&self, table: &str) -> Option<usize>
pub fn updated_at(&self, table: &str) -> Option<usize>
The _updated_at column index for a table, or None if the table was not
in the synced set passed to from_db. Incoming apply rejects an entire
changeset containing an undeclared table before premerge or row arbitration.
pub fn columns(&self, table: &str) -> Option<&[String]>
pub fn synced_tables(&self) -> &[SyncedTable]
Auto Trait Implementations§
impl Freeze for TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchema
impl Sync for TableSchema
impl Unpin for TableSchema
impl UnsafeUnpin for TableSchema
impl UnwindSafe for TableSchema
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