pub struct IndexColumnDef {
pub value: &'static str,
pub is_expression: bool,
}Expand description
Const-friendly index column specification
Fields§
§value: &'static strColumn name or expression
is_expression: boolWhether this is an expression (vs column name)
Implementations§
Source§impl IndexColumnDef
impl IndexColumnDef
Sourcepub const fn expression(value: &'static str) -> Self
pub const fn expression(value: &'static str) -> Self
Create a new index column from an expression
Sourcepub const fn into_column(self) -> IndexColumn
pub const fn into_column(self) -> IndexColumn
Convert to runtime IndexColumn type
Trait Implementations§
Source§impl Clone for IndexColumnDef
impl Clone for IndexColumnDef
Source§fn clone(&self) -> IndexColumnDef
fn clone(&self) -> IndexColumnDef
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 moreSource§impl Debug for IndexColumnDef
impl Debug for IndexColumnDef
Source§impl From<IndexColumnDef> for IndexColumn
impl From<IndexColumnDef> for IndexColumn
Source§fn from(def: IndexColumnDef) -> Self
fn from(def: IndexColumnDef) -> Self
Converts to this type from the input type.
Source§impl Hash for IndexColumnDef
impl Hash for IndexColumnDef
Source§impl PartialEq for IndexColumnDef
impl PartialEq for IndexColumnDef
impl Copy for IndexColumnDef
impl Eq for IndexColumnDef
impl StructuralPartialEq for IndexColumnDef
Auto Trait Implementations§
impl Freeze for IndexColumnDef
impl RefUnwindSafe for IndexColumnDef
impl Send for IndexColumnDef
impl Sync for IndexColumnDef
impl Unpin for IndexColumnDef
impl UnwindSafe for IndexColumnDef
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