pub struct TableState {
pub columns: Vec<ColumnSpec>,
pub comment: Option<String>,
pub properties: BTreeMap<String, String>,
pub managed_comment_hashes: BTreeMap<String, String>,
}Expand description
The live state of a table as reported by a backend’s describe.
managed_comment_hashes records the twg:comment_hash the backend last
stamped per column (and the table under the empty-string key), so the planner
can tell an unchanged managed comment (skip) from a drifted one (re-stamp)
without re-reading the comment text.
Fields§
§columns: Vec<ColumnSpec>Live columns in the table.
comment: Option<String>Live table-level comment, if any.
properties: BTreeMap<String, String>Live table properties/tags.
managed_comment_hashes: BTreeMap<String, String>Last-synced managed comment hashes, keyed by column name (the table’s own
managed-comment hash uses the empty string "" as its key).
Implementations§
Source§impl TableState
impl TableState
Trait Implementations§
Source§impl Clone for TableState
impl Clone for TableState
Source§fn clone(&self) -> TableState
fn clone(&self) -> TableState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableState
impl Debug for TableState
Source§impl PartialEq for TableState
impl PartialEq for TableState
impl Eq for TableState
impl StructuralPartialEq for TableState
Auto Trait Implementations§
impl Freeze for TableState
impl RefUnwindSafe for TableState
impl Send for TableState
impl Sync for TableState
impl Unpin for TableState
impl UnwindSafe for TableState
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