pub struct IndexStmt {Show 13 fields
pub access_method: String,
pub idxname: String,
pub index_params: Vec<IndexParams>,
pub relation: RelationKind,
pub concurrent: bool,
pub unique: bool,
pub primary: bool,
pub isconstraint: bool,
pub deferrable: bool,
pub initdeferred: bool,
pub transformed: bool,
pub if_not_exists: bool,
pub table_space: Option<String>,
}
Fields§
§access_method: String
name of access method (eg. btree)
idxname: String
name of new index, or NULL for default
index_params: Vec<IndexParams>
§relation: RelationKind
relation to build index on
concurrent: bool
§unique: bool
is index unique
primary: bool
is index a primary key?
isconstraint: bool
is it for a pkey/unique constraint?
deferrable: bool
is the constraint DEFERRABLE?
initdeferred: bool
is the constraint INITIALLY DEFERRED?
transformed: bool
true when transformIndexStmt is finished
if_not_exists: bool
should this be a concurrent index build? just do nothing if index already exists?
table_space: Option<String>
tablespace, or NULL for default
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexStmt
impl<'de> Deserialize<'de> for IndexStmt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IndexStmt
impl RefUnwindSafe for IndexStmt
impl Send for IndexStmt
impl Sync for IndexStmt
impl Unpin for IndexStmt
impl UnwindSafe for IndexStmt
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