pub struct SchemaMigrationRowOp { /* private fields */ }Expand description
SchemaMigrationRowOp
SchemaMigrationRowOp is the schema-evolution-owned row rewrite description. It carries a canonical entity target and raw row bytes, then the planner converts it into the lower-level migration row-op DTO only after validation.
Implementations§
Source§impl SchemaMigrationRowOp
impl SchemaMigrationRowOp
Sourcepub const fn new(
target: SchemaMigrationEntityTarget,
key: Vec<u8>,
before: Option<Vec<u8>>,
after: Option<Vec<u8>>,
) -> Self
pub const fn new( target: SchemaMigrationEntityTarget, key: Vec<u8>, before: Option<Vec<u8>>, after: Option<Vec<u8>>, ) -> Self
Build one explicit row rewrite for a schema migration.
Sourcepub const fn insert(
target: SchemaMigrationEntityTarget,
key: Vec<u8>,
after: Vec<u8>,
) -> Self
pub const fn insert( target: SchemaMigrationEntityTarget, key: Vec<u8>, after: Vec<u8>, ) -> Self
Build one insert-style row rewrite for a schema migration.
Sourcepub const fn target(&self) -> SchemaMigrationEntityTarget
pub const fn target(&self) -> SchemaMigrationEntityTarget
Return the canonical entity target for this row rewrite.
Trait Implementations§
Source§impl Clone for SchemaMigrationRowOp
impl Clone for SchemaMigrationRowOp
Source§fn clone(&self) -> SchemaMigrationRowOp
fn clone(&self) -> SchemaMigrationRowOp
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 SchemaMigrationRowOp
impl RefUnwindSafe for SchemaMigrationRowOp
impl Send for SchemaMigrationRowOp
impl Sync for SchemaMigrationRowOp
impl Unpin for SchemaMigrationRowOp
impl UnsafeUnpin for SchemaMigrationRowOp
impl UnwindSafe for SchemaMigrationRowOp
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