pub struct TableSchema {
pub name: String,
pub columns: HashMap<String, String>,
}Expand description
Table schema information with column types
Fields§
§name: String§columns: HashMap<String, String>Column name -> Column type (e.g., “id” -> “UUID”, “name” -> “TEXT”)
Implementations§
Source§impl TableSchema
impl TableSchema
Sourcepub fn has_column(&self, name: &str) -> bool
pub fn has_column(&self, name: &str) -> bool
Check if column exists
Sourcepub fn column_type(&self, name: &str) -> Option<&str>
pub fn column_type(&self, name: &str) -> Option<&str>
Get column type
Trait Implementations§
Source§impl Clone for TableSchema
impl Clone for TableSchema
Source§fn clone(&self) -> TableSchema
fn clone(&self) -> TableSchema
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 moreAuto Trait Implementations§
impl Freeze for TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchema
impl Sync for TableSchema
impl Unpin 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