pub enum ExpectedHash {
Digest([u8; 32]),
Compressed([u8; 20]),
}Expand description
Expected hash supplied by the user or a FOD declaration.
Variants§
Digest([u8; 32])
Full 32-byte SHA256 (from hex, SRI, or 52-char nix32).
Compressed([u8; 20])
Compressed 20-byte / 32-char Nix base32 form (store-path style).
Trait Implementations§
Source§impl Clone for ExpectedHash
impl Clone for ExpectedHash
Source§impl Debug for ExpectedHash
impl Debug for ExpectedHash
impl Eq for ExpectedHash
Source§impl PartialEq for ExpectedHash
impl PartialEq for ExpectedHash
impl StructuralPartialEq for ExpectedHash
Auto Trait Implementations§
impl Freeze for ExpectedHash
impl RefUnwindSafe for ExpectedHash
impl Send for ExpectedHash
impl Sync for ExpectedHash
impl Unpin for ExpectedHash
impl UnsafeUnpin for ExpectedHash
impl UnwindSafe for ExpectedHash
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
impl<T> Capability for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Equal for T
impl<T> Equal for T
Source§fn effect_equals(&self, other: &Self) -> bool
fn effect_equals(&self, other: &Self) -> bool
Returns whether
self and other are structurally equal (defaults to PartialEq::eq).Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more