pub struct Column { /* private fields */ }
Expand description
A column’s metadata.
Implementations§
Source§impl Column
impl Column
pub fn new( name: BoundedString, data_type: DataType, options: Vec<ColumnOptionDef>, internal: bool, ) -> Self
Sourcepub fn name(&self) -> &BoundedString
pub fn name(&self) -> &BoundedString
Name of the column.
Sourcepub fn options(&self) -> &Vec<ColumnOptionDef>
pub fn options(&self) -> &Vec<ColumnOptionDef>
Column’s options (attributes, constraints, etc.).
Sourcepub fn add_column_option(&mut self, option: ColumnOptionDef)
pub fn add_column_option(&mut self, option: ColumnOptionDef)
Add a new column option.
Sourcepub fn is_internal(&self) -> bool
pub fn is_internal(&self) -> bool
Whether the column is a hidden, internal-only column.
Trait Implementations§
impl Eq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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