pub struct IndexMigration;Expand description
Index-specific migration operations
Implementations§
Source§impl IndexMigration
impl IndexMigration
Sourcepub fn create_index(index: &IndexMeta) -> Migration
pub fn create_index(index: &IndexMeta) -> Migration
Create a migration for adding an index
Sourcepub fn drop_index(index: &IndexMeta) -> Migration
pub fn drop_index(index: &IndexMeta) -> Migration
Create a migration for dropping an index
Sourcepub fn modify_index(old_index: &IndexMeta, new_index: &IndexMeta) -> Migration
pub fn modify_index(old_index: &IndexMeta, new_index: &IndexMeta) -> Migration
Create a migration for modifying an index
Sourcepub fn batch_index_operations(operations: Vec<IndexOperation>) -> Migration
pub fn batch_index_operations(operations: Vec<IndexOperation>) -> Migration
Create a batch migration for multiple index operations
Auto Trait Implementations§
impl Freeze for IndexMigration
impl RefUnwindSafe for IndexMigration
impl Send for IndexMigration
impl Sync for IndexMigration
impl Unpin for IndexMigration
impl UnsafeUnpin for IndexMigration
impl UnwindSafe for IndexMigration
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more