pub struct Column {
pub column_name: &'static str,
pub table_name: &'static str,
/* 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
.
Fields§
§column_name: &'static str
The name of this column.
table_name: &'static str
The name of the table this columnn belongs to.
Implementations§
Source§impl Column
impl Column
Sourcepub const fn primary_key(&self) -> bool
pub const fn primary_key(&self) -> bool
Returns this propertie’s value.
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 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