pub struct IndexIr {
pub fields: Vec<String>,
pub index_type: Option<IndexType>,
pub name: Option<String>,
pub map: Option<String>,
}Expand description
Index metadata.
Fields§
§fields: Vec<String>Field names (logical) that form the index.
index_type: Option<IndexType>Optional index type (access method). None → let the DBMS decide
(BTree on all supported databases).
name: Option<String>Logical name — for developer reference only.
map: Option<String>Physical DDL name. When set this is used as the CREATE INDEX name
instead of the auto-generated idx_{table}_{cols} name.
Trait Implementations§
impl StructuralPartialEq for IndexIr
Auto Trait Implementations§
impl Freeze for IndexIr
impl RefUnwindSafe for IndexIr
impl Send for IndexIr
impl Sync for IndexIr
impl Unpin for IndexIr
impl UnsafeUnpin for IndexIr
impl UnwindSafe for IndexIr
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