pub struct IndexInfo {
pub name: String,
pub columns: Vec<String>,
pub unique: bool,
pub primary: bool,
}Expand description
An index on a table.
Fields§
§name: StringThe index name.
columns: Vec<String>Ordered list of column names that form the index key.
unique: boolWhether the index enforces uniqueness.
primary: boolWhether this index is the table’s primary key.
Trait Implementations§
impl Eq for IndexInfo
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 UnsafeUnpin 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