pub struct Column { /* private fields */ }Expand description
This type represents a column.
It can be used to retrieve information about the column.
It is mostly seen in it’s wrapped form TypedColumn.
Implementations§
source§impl Column
impl Column
pub const fn new(table_name: &'static str, column_name: &'static str) -> Column
pub const fn unique(&self) -> bool
pub const fn nullable(&self) -> bool
pub const fn primary_key(&self) -> bool
pub const fn generated(&self) -> bool
sourcepub const fn column_name(&self) -> &'static str
pub const fn column_name(&self) -> &'static str
Get the column name.
sourcepub const fn table_name(&self) -> &'static str
pub const fn table_name(&self) -> &'static str
Get the name of the table this column is part of.
Trait Implementations§
Auto Trait Implementations§
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