pub struct MigrationRegistryKey { /* private fields */ }Expand description
MigrationRegistryKey
MigrationRegistryKey names one completed schema migration by canonical migration identity plus monotonic version. The registry uses this key to reject repeat execution before the lower migration engine is invoked.
Implementations§
Source§impl MigrationRegistryKey
impl MigrationRegistryKey
Sourcepub const fn new(migration_id: EntityName, version: u64) -> Self
pub const fn new(migration_id: EntityName, version: u64) -> Self
Build one registry key from canonical migration identity.
Sourcepub const fn migration_id(self) -> EntityName
pub const fn migration_id(self) -> EntityName
Return the canonical migration identity.
Trait Implementations§
Source§impl Clone for MigrationRegistryKey
impl Clone for MigrationRegistryKey
Source§fn clone(&self) -> MigrationRegistryKey
fn clone(&self) -> MigrationRegistryKey
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 moreSource§impl Debug for MigrationRegistryKey
impl Debug for MigrationRegistryKey
Source§impl Ord for MigrationRegistryKey
impl Ord for MigrationRegistryKey
Source§fn cmp(&self, other: &MigrationRegistryKey) -> Ordering
fn cmp(&self, other: &MigrationRegistryKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MigrationRegistryKey
impl PartialEq for MigrationRegistryKey
Source§fn eq(&self, other: &MigrationRegistryKey) -> bool
fn eq(&self, other: &MigrationRegistryKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MigrationRegistryKey
impl PartialOrd for MigrationRegistryKey
impl Copy for MigrationRegistryKey
impl Eq for MigrationRegistryKey
impl StructuralPartialEq for MigrationRegistryKey
Auto Trait Implementations§
impl Freeze for MigrationRegistryKey
impl RefUnwindSafe for MigrationRegistryKey
impl Send for MigrationRegistryKey
impl Sync for MigrationRegistryKey
impl Unpin for MigrationRegistryKey
impl UnsafeUnpin for MigrationRegistryKey
impl UnwindSafe for MigrationRegistryKey
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