pub enum SchemaDataTransformation {
ExplicitRowOps(Vec<SchemaMigrationRowOp>),
}Expand description
SchemaDataTransformation
SchemaDataTransformation describes the data rewrite portion of one schema
migration descriptor.
The first slice accepts explicit row rewrites only; derivation engines can
add richer variants later without changing db::migration execution.
Variants§
ExplicitRowOps(Vec<SchemaMigrationRowOp>)
Implementations§
Source§impl SchemaDataTransformation
impl SchemaDataTransformation
Sourcepub const fn explicit_row_ops(row_ops: Vec<SchemaMigrationRowOp>) -> Self
pub const fn explicit_row_ops(row_ops: Vec<SchemaMigrationRowOp>) -> Self
Build one explicit row-op data transformation.
Sourcepub const fn row_ops(&self) -> &[SchemaMigrationRowOp]
pub const fn row_ops(&self) -> &[SchemaMigrationRowOp]
Borrow the explicit row-op payload for this transformation.
Trait Implementations§
Source§impl Clone for SchemaDataTransformation
impl Clone for SchemaDataTransformation
Source§fn clone(&self) -> SchemaDataTransformation
fn clone(&self) -> SchemaDataTransformation
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 moreAuto Trait Implementations§
impl Freeze for SchemaDataTransformation
impl RefUnwindSafe for SchemaDataTransformation
impl Send for SchemaDataTransformation
impl Sync for SchemaDataTransformation
impl Unpin for SchemaDataTransformation
impl UnsafeUnpin for SchemaDataTransformation
impl UnwindSafe for SchemaDataTransformation
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