#[non_exhaustive]pub enum MigrationStep {
Unspecified,
Prepare,
Start,
ApplyWritesSynchronously,
CopyAndVerify,
RedirectEventuallyConsistentReads,
RedirectStronglyConsistentReads,
RedirectWrites,
UnknownValue(UnknownValue),
}Expand description
Steps in a migration.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Unspecified.
Prepare
Pre-migration: the database is prepared for migration.
Start
Start of migration.
ApplyWritesSynchronously
Writes are applied synchronously to at least one replica.
CopyAndVerify
Data is copied to Cloud Firestore and then verified to match the data in Cloud Datastore.
RedirectEventuallyConsistentReads
Eventually-consistent reads are redirected to Cloud Firestore.
RedirectStronglyConsistentReads
Strongly-consistent reads are redirected to Cloud Firestore.
RedirectWrites
Writes are redirected to Cloud Firestore.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using MigrationStep::value or MigrationStep::name.
Implementations§
Trait Implementations§
Source§impl Clone for MigrationStep
impl Clone for MigrationStep
Source§fn clone(&self) -> MigrationStep
fn clone(&self) -> MigrationStep
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more