pub struct Sha256Digest(/* private fields */);Expand description
Lowercase hex SHA-256 digest. Validated as exactly 64 hex chars
[0-9a-f] so manifest comparisons are normalised — any
upper-case or shorter input is rejected at deserialise time.
Implementations§
Source§impl Sha256Digest
impl Sha256Digest
Trait Implementations§
Source§impl AsRef<str> for Sha256Digest
impl AsRef<str> for Sha256Digest
Source§impl Clone for Sha256Digest
impl Clone for Sha256Digest
Source§fn clone(&self) -> Sha256Digest
fn clone(&self) -> Sha256Digest
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 Sha256Digest
impl Debug for Sha256Digest
Source§impl<'de> Deserialize<'de> for Sha256Digest
impl<'de> Deserialize<'de> for Sha256Digest
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Sha256Digest
impl Display for Sha256Digest
Source§impl From<Sha256Digest> for String
impl From<Sha256Digest> for String
Source§fn from(id: Sha256Digest) -> Self
fn from(id: Sha256Digest) -> Self
Converts to this type from the input type.
Source§impl FromStr for Sha256Digest
impl FromStr for Sha256Digest
Source§impl Hash for Sha256Digest
impl Hash for Sha256Digest
Source§impl Ord for Sha256Digest
impl Ord for Sha256Digest
Source§fn cmp(&self, other: &Sha256Digest) -> Ordering
fn cmp(&self, other: &Sha256Digest) -> 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 Sha256Digest
impl PartialEq for Sha256Digest
Source§fn eq(&self, other: &Sha256Digest) -> bool
fn eq(&self, other: &Sha256Digest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Sha256Digest
impl PartialOrd for Sha256Digest
Source§impl Serialize for Sha256Digest
impl Serialize for Sha256Digest
Source§impl TryFrom<&str> for Sha256Digest
impl TryFrom<&str> for Sha256Digest
Source§impl TryFrom<String> for Sha256Digest
impl TryFrom<String> for Sha256Digest
impl Eq for Sha256Digest
impl StructuralPartialEq for Sha256Digest
Auto Trait Implementations§
impl Freeze for Sha256Digest
impl RefUnwindSafe for Sha256Digest
impl Send for Sha256Digest
impl Sync for Sha256Digest
impl Unpin for Sha256Digest
impl UnsafeUnpin for Sha256Digest
impl UnwindSafe for Sha256Digest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.