pub struct NewIndex {Show 14 fields
pub table: u32,
pub name: Option<String>,
pub columns: Vec<NewIndexColumn>,
pub key_count: usize,
pub method: u32,
pub unique: bool,
pub nulls_not_distinct: bool,
pub constraint: Option<ConKind>,
pub deferrable: bool,
pub deferred: bool,
pub exprs: Option<String>,
pub predicate: Option<String>,
pub refs: Vec<ObjRef>,
pub pages: i32,
}Expand description
A new index before it has an OID.
Fields§
§table: u32The OID of the table.
name: Option<String>The name that the statement gives, or None to make one.
columns: Vec<NewIndexColumn>The columns: the key columns, then the INCLUDE columns.
key_count: usizeThe number of key columns.
method: u32The OID of the access method.
unique: boolTrue for a unique index.
nulls_not_distinct: boolTrue for NULLS NOT DISTINCT.
constraint: Option<ConKind>The constraint that the index is for: Primary, Unique or None.
deferrable: boolTrue for a deferrable constraint.
deferred: boolTrue for a constraint that is initially deferred.
exprs: Option<String>The expressions of the index columns with key 0, in the form of the analyzer.
predicate: Option<String>The predicate, in the form of the analyzer.
refs: Vec<ObjRef>The objects that the expressions and the predicate refer to.
pages: i32The pages of the main fork of the new index, from size::empty_index_pages.
Trait Implementations§
impl Eq for NewIndex
impl StructuralPartialEq for NewIndex
Auto Trait Implementations§
impl Freeze for NewIndex
impl RefUnwindSafe for NewIndex
impl Send for NewIndex
impl Sync for NewIndex
impl Unpin for NewIndex
impl UnsafeUnpin for NewIndex
impl UnwindSafe for NewIndex
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