pub struct MigrationArgsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> MigrationArgsBuilder<S>
impl<S: State> MigrationArgsBuilder<S>
Sourcepub fn build(self) -> MigrationArgswhere
S: IsComplete,
pub fn build(self) -> MigrationArgswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn application_type(
self,
value: String,
) -> MigrationArgsBuilder<SetApplicationType<S>>where
S::ApplicationType: IsUnset,
pub fn application_type(
self,
value: String,
) -> MigrationArgsBuilder<SetApplicationType<S>>where
S::ApplicationType: IsUnset,
Sourcepub fn maybe_application_type(
self,
value: Option<String>,
) -> MigrationArgsBuilder<SetApplicationType<S>>where
S::ApplicationType: IsUnset,
pub fn maybe_application_type(
self,
value: Option<String>,
) -> MigrationArgsBuilder<SetApplicationType<S>>where
S::ApplicationType: IsUnset,
Sourcepub fn data_bytes_after(
self,
value: i64,
) -> MigrationArgsBuilder<SetDataBytesAfter<S>>where
S::DataBytesAfter: IsUnset,
pub fn data_bytes_after(
self,
value: i64,
) -> MigrationArgsBuilder<SetDataBytesAfter<S>>where
S::DataBytesAfter: IsUnset,
Required.
Size of the data after they ran. The growth between the two is what shows a migration that backfills heavily.
Sourcepub fn data_bytes_before(
self,
value: i64,
) -> MigrationArgsBuilder<SetDataBytesBefore<S>>where
S::DataBytesBefore: IsUnset,
pub fn data_bytes_before(
self,
value: i64,
) -> MigrationArgsBuilder<SetDataBytesBefore<S>>where
S::DataBytesBefore: IsUnset,
Required.
Size of the data before the migrations ran.
Sourcepub fn failed_migration(
self,
value: String,
) -> MigrationArgsBuilder<SetFailedMigration<S>>where
S::FailedMigration: IsUnset,
pub fn failed_migration(
self,
value: String,
) -> MigrationArgsBuilder<SetFailedMigration<S>>where
S::FailedMigration: IsUnset,
Sourcepub fn maybe_failed_migration(
self,
value: Option<String>,
) -> MigrationArgsBuilder<SetFailedMigration<S>>where
S::FailedMigration: IsUnset,
pub fn maybe_failed_migration(
self,
value: Option<String>,
) -> MigrationArgsBuilder<SetFailedMigration<S>>where
S::FailedMigration: IsUnset,
Sourcepub fn target_version(
self,
value: String,
) -> MigrationArgsBuilder<SetTargetVersion<S>>where
S::TargetVersion: IsUnset,
pub fn target_version(
self,
value: String,
) -> MigrationArgsBuilder<SetTargetVersion<S>>where
S::TargetVersion: IsUnset,
Sourcepub fn maybe_target_version(
self,
value: Option<String>,
) -> MigrationArgsBuilder<SetTargetVersion<S>>where
S::TargetVersion: IsUnset,
pub fn maybe_target_version(
self,
value: Option<String>,
) -> MigrationArgsBuilder<SetTargetVersion<S>>where
S::TargetVersion: IsUnset,
Sourcepub fn target_version_id(
self,
value: Uuid,
) -> MigrationArgsBuilder<SetTargetVersionId<S>>where
S::TargetVersionId: IsUnset,
pub fn target_version_id(
self,
value: Uuid,
) -> MigrationArgsBuilder<SetTargetVersionId<S>>where
S::TargetVersionId: IsUnset,
Sourcepub fn maybe_target_version_id(
self,
value: Option<Uuid>,
) -> MigrationArgsBuilder<SetTargetVersionId<S>>where
S::TargetVersionId: IsUnset,
pub fn maybe_target_version_id(
self,
value: Option<Uuid>,
) -> MigrationArgsBuilder<SetTargetVersionId<S>>where
S::TargetVersionId: IsUnset,
Sourcepub fn timings(
self,
value: Vec<MigrationTimingArgs>,
) -> MigrationArgsBuilder<SetTimings<S>>where
S::Timings: IsUnset,
pub fn timings(
self,
value: Vec<MigrationTimingArgs>,
) -> MigrationArgsBuilder<SetTimings<S>>where
S::Timings: IsUnset,
Required.
One entry per migration that ran, in the order they ran.
Sourcepub fn total_elapsed_seconds(
self,
value: i64,
) -> MigrationArgsBuilder<SetTotalElapsedSeconds<S>>where
S::TotalElapsedSeconds: IsUnset,
pub fn total_elapsed_seconds(
self,
value: i64,
) -> MigrationArgsBuilder<SetTotalElapsedSeconds<S>>where
S::TotalElapsedSeconds: IsUnset,
Required.
Whole seconds the whole migration run took.
Auto Trait Implementations§
impl<S> Freeze for MigrationArgsBuilder<S>
impl<S> RefUnwindSafe for MigrationArgsBuilder<S>
impl<S> Send for MigrationArgsBuilder<S>
impl<S> Sync for MigrationArgsBuilder<S>
impl<S> Unpin for MigrationArgsBuilder<S>
impl<S> UnsafeUnpin for MigrationArgsBuilder<S>
impl<S> UnwindSafe for MigrationArgsBuilder<S>
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