pub struct MigrationLedgerKey(/* private fields */);Expand description
Domain-separated ledger key derived from canonical compound migration-ID bytes.
Implementations§
Source§impl MigrationLedgerKey
impl MigrationLedgerKey
Sourcepub fn compute(id: &MigrationId) -> Result<Self, Diagnostic>
pub fn compute(id: &MigrationId) -> Result<Self, Diagnostic>
Compute one stable ledger key without flattening identity components.
Sourcepub const fn as_fingerprint(&self) -> &Fingerprint
pub const fn as_fingerprint(&self) -> &Fingerprint
Return the generic domain-separated fingerprint.
Trait Implementations§
Source§impl Clone for MigrationLedgerKey
impl Clone for MigrationLedgerKey
Source§fn clone(&self) -> MigrationLedgerKey
fn clone(&self) -> MigrationLedgerKey
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 MigrationLedgerKey
impl Debug for MigrationLedgerKey
impl Eq for MigrationLedgerKey
Source§impl PartialEq for MigrationLedgerKey
impl PartialEq for MigrationLedgerKey
Source§impl Serialize for MigrationLedgerKey
impl Serialize for MigrationLedgerKey
impl StructuralPartialEq for MigrationLedgerKey
Auto Trait Implementations§
impl Freeze for MigrationLedgerKey
impl RefUnwindSafe for MigrationLedgerKey
impl Send for MigrationLedgerKey
impl Sync for MigrationLedgerKey
impl Unpin for MigrationLedgerKey
impl UnsafeUnpin for MigrationLedgerKey
impl UnwindSafe for MigrationLedgerKey
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