pub struct MigrationMetadata {
pub app_label: String,
pub name: String,
pub dependencies: Vec<(String, String)>,
pub generated_at: String,
pub type_bridge_version: String,
pub type_bridge_core_version: String,
}Expand description
Identity and dependency metadata for one authored migration.
Fields§
§app_label: StringMigrations package name (the migrations directory name).
name: StringFull migration stem, e.g. 0003_add_assignment.
dependencies: Vec<(String, String)>(app_label, migration_name) dependencies.
generated_at: StringTimestamp text embedded verbatim in the generated .py docstring.
Explicit so authoring stays deterministic; callers stamp wall-clock time only at the boundary.
type_bridge_version: Stringtype_bridge package version recorded in the snapshot manifest.
type_bridge_core_version: Stringtype_bridge_core version recorded in the snapshot manifest.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MigrationMetadata
impl RefUnwindSafe for MigrationMetadata
impl Send for MigrationMetadata
impl Sync for MigrationMetadata
impl Unpin for MigrationMetadata
impl UnsafeUnpin for MigrationMetadata
impl UnwindSafe for MigrationMetadata
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> 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