pub struct PythonRenderRequest<'a> {
pub operations: &'a [OperationSpec],
pub app_label: &'a str,
pub name: &'a str,
pub dependencies: &'a [(String, String)],
pub generated_at: &'a str,
pub pre_version: Option<&'a str>,
pub post_version: &'a str,
pub base: &'a SchemaInfo,
pub target: &'a SchemaInfo,
}Expand description
Everything needed to render one migration .py.
Fields§
§operations: &'a [OperationSpec]Ordered authoring operations.
app_label: &'a strMigrations package name (the migrations directory name).
name: &'a strMigration name suffix (e.g. add_assignment).
dependencies: &'a [(String, String)](app_label, migration_name) dependencies.
generated_at: &'a strTimestamp text embedded verbatim in the module docstring.
Passed explicitly so identical inputs produce byte-identical output.
pre_version: Option<&'a str>Previous snapshot version (v000{N-1}), if any.
post_version: &'a strSnapshot version generated together with this migration (v000N).
base: &'a SchemaInfoSchema the pre-version snapshot was generated from.
target: &'a SchemaInfoSchema the post-version snapshot is generated from.
Auto Trait Implementations§
impl<'a> Freeze for PythonRenderRequest<'a>
impl<'a> RefUnwindSafe for PythonRenderRequest<'a>
impl<'a> Send for PythonRenderRequest<'a>
impl<'a> Sync for PythonRenderRequest<'a>
impl<'a> Unpin for PythonRenderRequest<'a>
impl<'a> UnsafeUnpin for PythonRenderRequest<'a>
impl<'a> UnwindSafe for PythonRenderRequest<'a>
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