pub struct IndexKeyColumn {
pub column: Option<u16>,
pub expr_sql: Option<Vec<u8>>,
pub collation: Vec<u8>,
pub descending: bool,
}Expand description
One key column of an index being created.
Fields§
§column: Option<u16>The table column, when the key is a bare column.
None for a key that is an expression. It was a bare u16 while
CREATE INDEX ix ON t(lower(a)) was refused in the binder; the field is
an Option now so that a reader which needs a column - a module-backed
index, say - has to say what it does when there is not one, rather than
reading a position that was invented to fill the slot.
expr_sql: Option<Vec<u8>>The key expression, as written, when the key is one.
collation: Vec<u8>The folded collation name.
descending: boolWhether the key is stored descending.
Trait Implementations§
Source§impl Clone for IndexKeyColumn
impl Clone for IndexKeyColumn
Source§impl Debug for IndexKeyColumn
impl Debug for IndexKeyColumn
impl Eq for IndexKeyColumn
Source§impl PartialEq for IndexKeyColumn
impl PartialEq for IndexKeyColumn
impl StructuralPartialEq for IndexKeyColumn
Auto Trait Implementations§
impl Freeze for IndexKeyColumn
impl RefUnwindSafe for IndexKeyColumn
impl Send for IndexKeyColumn
impl Sync for IndexKeyColumn
impl Unpin for IndexKeyColumn
impl UnsafeUnpin for IndexKeyColumn
impl UnwindSafe for IndexKeyColumn
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