Struct IndexInfo
pub struct IndexInfo {
pub is_primary_key: bool,
pub is_unique: bool,
pub name: String,
pub index_type: IndexType,
pub parts: Vec<IndexPart>,
}Fields§
§is_primary_key: boolIndex is part of a PRIMARY KEY constraint
is_unique: boolIndex is part of a UNIQUE constraint
name: StringName of the index
index_type: IndexTypeIndex type
parts: Vec<IndexPart>The parts composing this index
Implementations§
§impl IndexInfo
impl IndexInfo
pub fn write(&self) -> IndexCreateStatement
Trait Implementations§
impl StructuralPartialEq for IndexInfo
Auto Trait Implementations§
impl Freeze for IndexInfo
impl RefUnwindSafe for IndexInfo
impl Send for IndexInfo
impl Sync for IndexInfo
impl Unpin for IndexInfo
impl UnwindSafe for IndexInfo
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