pub trait ColumnLike<T = Value>:
Send
+ Sync
+ Debugwhere
T: ColumnType,{
// Required methods
fn name(&self) -> &str;
fn flags(&self) -> HashSet<ColumnFlag>;
fn as_any(&self) -> &dyn Any;
fn into_any(self: Box<Self>) -> Box<dyn Any>;
// Provided methods
fn alias(&self) -> Option<&str> { ... }
fn get_type(&self) -> &'static str { ... }
}Expand description
Trait defines a minimal implementation for a Table column with type information