pub struct MigrationExecution {
pub app_label: String,
pub name: String,
pub action: MigrationAction,
pub steps: Vec<ExecutionStep>,
pub reversible: bool,
}Expand description
One migration scheduled for execution, together with its assembled steps.
Fields§
§app_label: StringApplication or migration package label.
name: StringMigration file stem, such as 0001_initial.
action: MigrationActionApply or rollback.
steps: Vec<ExecutionStep>Ordered execution steps.
reversible: boolWhether every step in this migration has a reverse.
false when the migration contains a DefineSchema op (model-initial
schema; no reverse) or any op whose reverse is None.
Trait Implementations§
Source§impl Clone for MigrationExecution
impl Clone for MigrationExecution
Source§fn clone(&self) -> MigrationExecution
fn clone(&self) -> MigrationExecution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MigrationExecution
impl Debug for MigrationExecution
Source§impl<'de> Deserialize<'de> for MigrationExecution
impl<'de> Deserialize<'de> for MigrationExecution
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
Source§impl PartialEq for MigrationExecution
impl PartialEq for MigrationExecution
Source§impl Serialize for MigrationExecution
impl Serialize for MigrationExecution
impl StructuralPartialEq for MigrationExecution
Auto Trait Implementations§
impl Freeze for MigrationExecution
impl RefUnwindSafe for MigrationExecution
impl Send for MigrationExecution
impl Sync for MigrationExecution
impl Unpin for MigrationExecution
impl UnsafeUnpin for MigrationExecution
impl UnwindSafe for MigrationExecution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request