pub struct LegacyAppliedSetDigest(/* private fields */);Expand description
Digest binding every semantic row in the released applied ledger.
The preimage excludes applied_at: released insertion timestamps do not
change which migrations/checksums are applied. Exact UTF-8 identity and
checksum triples are sorted, count-prefixed, and length-delimited so
component boundaries cannot collide.
Implementations§
Source§impl LegacyAppliedSetDigest
impl LegacyAppliedSetDigest
Sourcepub fn compute(
references: impl IntoIterator<Item = LegacyMigrationReference>,
) -> Result<Self, Diagnostic>
pub fn compute( references: impl IntoIterator<Item = LegacyMigrationReference>, ) -> Result<Self, Diagnostic>
Compute the domain-separated digest of one complete applied set.
Sourcepub fn new(value: impl Into<String>) -> Result<Self, Diagnostic>
pub fn new(value: impl Into<String>) -> Result<Self, Diagnostic>
Validate a persisted lowercase SHA-256 digest.
Sourcepub const fn canonicalization(&self) -> &'static str
pub const fn canonicalization(&self) -> &'static str
Return the fixed preimage canonicalization/domain vocabulary.
Trait Implementations§
Source§impl Clone for LegacyAppliedSetDigest
impl Clone for LegacyAppliedSetDigest
Source§fn clone(&self) -> LegacyAppliedSetDigest
fn clone(&self) -> LegacyAppliedSetDigest
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 LegacyAppliedSetDigest
impl Debug for LegacyAppliedSetDigest
impl Eq for LegacyAppliedSetDigest
Source§impl Hash for LegacyAppliedSetDigest
impl Hash for LegacyAppliedSetDigest
Source§impl Ord for LegacyAppliedSetDigest
impl Ord for LegacyAppliedSetDigest
Source§fn cmp(&self, other: &LegacyAppliedSetDigest) -> Ordering
fn cmp(&self, other: &LegacyAppliedSetDigest) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LegacyAppliedSetDigest
impl PartialEq for LegacyAppliedSetDigest
Source§impl PartialOrd for LegacyAppliedSetDigest
impl PartialOrd for LegacyAppliedSetDigest
impl StructuralPartialEq for LegacyAppliedSetDigest
Auto Trait Implementations§
impl Freeze for LegacyAppliedSetDigest
impl RefUnwindSafe for LegacyAppliedSetDigest
impl Send for LegacyAppliedSetDigest
impl Sync for LegacyAppliedSetDigest
impl Unpin for LegacyAppliedSetDigest
impl UnsafeUnpin for LegacyAppliedSetDigest
impl UnwindSafe for LegacyAppliedSetDigest
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