#[non_exhaustive]pub struct DatastoreFirestoreMigrationMetadata {
pub migration_state: MigrationState,
pub migration_step: MigrationStep,
/* private fields */
}Expand description
Metadata for Datastore to Firestore migration operations.
The DatastoreFirestoreMigration operation is not started by the end-user via an explicit “creation” method. This is an intentional deviation from the LRO design pattern.
This singleton resource can be accessed at: “projects/{project_id}/operations/datastore-firestore-migration”
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.migration_state: MigrationStateThe current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode.
migration_step: MigrationStepThe current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode.
Implementations§
Source§impl DatastoreFirestoreMigrationMetadata
impl DatastoreFirestoreMigrationMetadata
pub fn new() -> Self
Sourcepub fn set_migration_state<T: Into<MigrationState>>(self, v: T) -> Self
pub fn set_migration_state<T: Into<MigrationState>>(self, v: T) -> Self
Sets the value of migration_state.
Sourcepub fn set_migration_step<T: Into<MigrationStep>>(self, v: T) -> Self
pub fn set_migration_step<T: Into<MigrationStep>>(self, v: T) -> Self
Sets the value of migration_step.
Trait Implementations§
Source§impl Clone for DatastoreFirestoreMigrationMetadata
impl Clone for DatastoreFirestoreMigrationMetadata
Source§fn clone(&self) -> DatastoreFirestoreMigrationMetadata
fn clone(&self) -> DatastoreFirestoreMigrationMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DatastoreFirestoreMigrationMetadata
impl Default for DatastoreFirestoreMigrationMetadata
Source§fn default() -> DatastoreFirestoreMigrationMetadata
fn default() -> DatastoreFirestoreMigrationMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for DatastoreFirestoreMigrationMetadata
impl PartialEq for DatastoreFirestoreMigrationMetadata
Source§fn eq(&self, other: &DatastoreFirestoreMigrationMetadata) -> bool
fn eq(&self, other: &DatastoreFirestoreMigrationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DatastoreFirestoreMigrationMetadata
Auto Trait Implementations§
impl Freeze for DatastoreFirestoreMigrationMetadata
impl RefUnwindSafe for DatastoreFirestoreMigrationMetadata
impl Send for DatastoreFirestoreMigrationMetadata
impl Sync for DatastoreFirestoreMigrationMetadata
impl Unpin for DatastoreFirestoreMigrationMetadata
impl UnwindSafe for DatastoreFirestoreMigrationMetadata
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