pub struct MigrationRowOp { /* private fields */ }Expand description
MigrationRowOp
Public migration row operation DTO used to build explicit migration steps. This DTO mirrors commit row-op payload shape without exposing commit internals. Migration execution converts these DTOs into commit marker row operations.
Implementations§
Source§impl MigrationRowOp
impl MigrationRowOp
Sourcepub fn new(
entity_path: impl Into<String>,
key: Vec<u8>,
before: Option<Vec<u8>>,
after: Option<Vec<u8>>,
schema_fingerprint: [u8; 16],
) -> Result<Self, InternalError>
pub fn new( entity_path: impl Into<String>, key: Vec<u8>, before: Option<Vec<u8>>, after: Option<Vec<u8>>, schema_fingerprint: [u8; 16], ) -> Result<Self, InternalError>
Construct one validated migration row operation DTO.
The constructor is the only public construction boundary for migration row operations. It validates the runtime entity path, rejects no-op row operations, and decodes the raw data key once before the operation enters the lower migration engine.
Sourcepub const fn entity_path(&self) -> &str
pub const fn entity_path(&self) -> &str
Return the runtime entity path resolved by commit runtime hooks.
Sourcepub const fn key(&self) -> &[u8] ⓘ
pub const fn key(&self) -> &[u8] ⓘ
Borrow the encoded raw data key bytes for the target row identity.
Sourcepub const fn schema_fingerprint(&self) -> [u8; 16]
pub const fn schema_fingerprint(&self) -> [u8; 16]
Return the schema fingerprint expected by commit prepare/replay.
Trait Implementations§
Source§impl Clone for MigrationRowOp
impl Clone for MigrationRowOp
Source§fn clone(&self) -> MigrationRowOp
fn clone(&self) -> MigrationRowOp
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 MigrationRowOp
impl RefUnwindSafe for MigrationRowOp
impl Send for MigrationRowOp
impl Sync for MigrationRowOp
impl Unpin for MigrationRowOp
impl UnsafeUnpin for MigrationRowOp
impl UnwindSafe for MigrationRowOp
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