pub enum AlterIndexTarget {
Rebuild {
encoding: Option<VecEncoding>,
},
Rename {
new: String,
if_exists: bool,
},
}Variants§
Rebuild
REBUILD [WITH (encoding = <enc>)]. encoding = None
rebuilds the existing graph in place without touching the
column encoding; Some(enc) re-encodes every cell first.
Fields
§
encoding: Option<VecEncoding>Rename
v7.16.2 — [IF EXISTS] RENAME TO <new>. mailrs migrate-042
uses this; PG drops the IF EXISTS noisily as ERROR, mailrs
uses it to make the migration idempotent (re-running on a
DB where the rename already happened is a no-op rather
than an error).
Trait Implementations§
Source§impl Clone for AlterIndexTarget
impl Clone for AlterIndexTarget
Source§fn clone(&self) -> AlterIndexTarget
fn clone(&self) -> AlterIndexTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlterIndexTarget
impl Debug for AlterIndexTarget
impl Eq for AlterIndexTarget
Source§impl PartialEq for AlterIndexTarget
impl PartialEq for AlterIndexTarget
Source§fn eq(&self, other: &AlterIndexTarget) -> bool
fn eq(&self, other: &AlterIndexTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlterIndexTarget
Auto Trait Implementations§
impl Freeze for AlterIndexTarget
impl RefUnwindSafe for AlterIndexTarget
impl Send for AlterIndexTarget
impl Sync for AlterIndexTarget
impl Unpin for AlterIndexTarget
impl UnsafeUnpin for AlterIndexTarget
impl UnwindSafe for AlterIndexTarget
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