pub struct DigestValue(/* private fields */);Expand description
A validated encoded digest value.
Implementations§
Source§impl DigestValue
impl DigestValue
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, OciDigestError>
pub fn new(value: impl AsRef<str>) -> Result<Self, OciDigestError>
Creates an encoded digest value.
Sourcepub fn sha256_hex(value: impl AsRef<str>) -> Result<Self, OciDigestError>
pub fn sha256_hex(value: impl AsRef<str>) -> Result<Self, OciDigestError>
Creates a sha256 hex digest value.
Trait Implementations§
Source§impl AsRef<str> for DigestValue
impl AsRef<str> for DigestValue
Source§impl Clone for DigestValue
impl Clone for DigestValue
Source§fn clone(&self) -> DigestValue
fn clone(&self) -> DigestValue
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 DigestValue
impl Debug for DigestValue
Source§impl Display for DigestValue
impl Display for DigestValue
Source§impl Hash for DigestValue
impl Hash for DigestValue
Source§impl Ord for DigestValue
impl Ord for DigestValue
Source§fn cmp(&self, other: &DigestValue) -> Ordering
fn cmp(&self, other: &DigestValue) -> 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 DigestValue
impl PartialEq for DigestValue
Source§fn eq(&self, other: &DigestValue) -> bool
fn eq(&self, other: &DigestValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DigestValue
impl PartialOrd for DigestValue
impl Eq for DigestValue
impl StructuralPartialEq for DigestValue
Auto Trait Implementations§
impl Freeze for DigestValue
impl RefUnwindSafe for DigestValue
impl Send for DigestValue
impl Sync for DigestValue
impl Unpin for DigestValue
impl UnsafeUnpin for DigestValue
impl UnwindSafe for DigestValue
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