pub enum IndexKeyPart {
Column {
name: &'static str,
length: Option<u32>,
order: Option<IndexOrder>,
},
Expression {
sql: &'static str,
order: Option<IndexOrder>,
},
}Expand description
One column or trusted SQL expression in a generated MySQL index.
Variants§
Column
A named table column.
Fields
§
order: Option<IndexOrder>Optional key-part direction.
Expression
A trusted functional-index SQL expression.
Fields
§
order: Option<IndexOrder>Optional key-part direction.
Trait Implementations§
Source§impl Clone for IndexKeyPart
impl Clone for IndexKeyPart
impl Copy for IndexKeyPart
Source§impl Debug for IndexKeyPart
impl Debug for IndexKeyPart
impl Eq for IndexKeyPart
Source§impl Hash for IndexKeyPart
impl Hash for IndexKeyPart
Source§impl PartialEq for IndexKeyPart
impl PartialEq for IndexKeyPart
impl StructuralPartialEq for IndexKeyPart
Auto Trait Implementations§
impl Freeze for IndexKeyPart
impl RefUnwindSafe for IndexKeyPart
impl Send for IndexKeyPart
impl Sync for IndexKeyPart
impl Unpin for IndexKeyPart
impl UnsafeUnpin for IndexKeyPart
impl UnwindSafe for IndexKeyPart
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