pub struct CreateMigrationRequest {
pub source: MigrationEndpoint,
pub target: MigrationEndpoint,
pub migration_type: Option<String>,
pub key_pattern: Option<String>,
pub flush_target: Option<bool>,
}
Expand description
Create migration request
Fields§
§source: MigrationEndpoint
Source endpoint configuration
target: MigrationEndpoint
Target endpoint configuration
migration_type: Option<String>
Type of migration to perform (e.g., “full”, “incremental”)
key_pattern: Option<String>
Redis key pattern to migrate (supports wildcards)
flush_target: Option<bool>
Whether to flush the target database before migration
Implementations§
Source§impl CreateMigrationRequest
impl CreateMigrationRequest
Sourcepub fn builder() -> CreateMigrationRequestBuilder<((), (), (), (), ())>
pub fn builder() -> CreateMigrationRequestBuilder<((), (), (), (), ())>
Create a builder for building CreateMigrationRequest
.
On the builder, call .source(...)
, .target(...)
, .migration_type(...)
(optional), .key_pattern(...)
(optional), .flush_target(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateMigrationRequest
.
Trait Implementations§
Source§impl Clone for CreateMigrationRequest
impl Clone for CreateMigrationRequest
Source§fn clone(&self) -> CreateMigrationRequest
fn clone(&self) -> CreateMigrationRequest
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 Debug for CreateMigrationRequest
impl Debug for CreateMigrationRequest
Source§impl<'de> Deserialize<'de> for CreateMigrationRequest
impl<'de> Deserialize<'de> for CreateMigrationRequest
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 CreateMigrationRequest
impl RefUnwindSafe for CreateMigrationRequest
impl Send for CreateMigrationRequest
impl Sync for CreateMigrationRequest
impl Unpin for CreateMigrationRequest
impl UnwindSafe for CreateMigrationRequest
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