Struct MigrationRecord
pub struct MigrationRecord {
pub checksum: Option<String>,
pub content_checksum: Option<String>,
pub run_id: Option<String>,
pub statements: Option<String>,
pub cursor: Option<String>,
}Expand description
One row of the migrations journal — the durable identity a replayed migration tag is validated against. Every decision over it belongs to the caller; the readers here only decode.
Fields§
§checksum: Option<String>The opaque (tool-supplied) checksum, if one was recorded.
content_checksum: Option<String>The canonical content checksum over the normalized statement vector.
run_id: Option<String>The journal run carrying the migration’s frame, if it minted one.
statements: Option<String>The recorded statement vector (JSON), if the journal stored one.
cursor: Option<String>The exact commit cursor, if already resolved/backfilled.
Trait Implementations§
§impl Clone for MigrationRecord
impl Clone for MigrationRecord
§fn clone(&self) -> MigrationRecord
fn clone(&self) -> MigrationRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 MigrationRecord
impl RefUnwindSafe for MigrationRecord
impl Send for MigrationRecord
impl Sync for MigrationRecord
impl Unpin for MigrationRecord
impl UnsafeUnpin for MigrationRecord
impl UnwindSafe for MigrationRecord
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