pub struct ContentDigestAlgorithm(/* private fields */);Expand description
Algorithm identifier attached to a real content integrity digest.
Implementations§
Source§impl ContentDigestAlgorithm
impl ContentDigestAlgorithm
Sourcepub fn new(value: impl Into<String>) -> Result<Self>
pub fn new(value: impl Into<String>) -> Result<Self>
Creates a non-empty algorithm identifier without normalizing its spelling.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the identifier and returns its string value.
Trait Implementations§
Source§impl Clone for ContentDigestAlgorithm
impl Clone for ContentDigestAlgorithm
Source§fn clone(&self) -> ContentDigestAlgorithm
fn clone(&self) -> ContentDigestAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · 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 ContentDigestAlgorithm
impl Debug for ContentDigestAlgorithm
Source§impl Hash for ContentDigestAlgorithm
impl Hash for ContentDigestAlgorithm
Source§impl PartialEq for ContentDigestAlgorithm
impl PartialEq for ContentDigestAlgorithm
impl Eq for ContentDigestAlgorithm
impl StructuralPartialEq for ContentDigestAlgorithm
Auto Trait Implementations§
impl Freeze for ContentDigestAlgorithm
impl RefUnwindSafe for ContentDigestAlgorithm
impl Send for ContentDigestAlgorithm
impl Sync for ContentDigestAlgorithm
impl Unpin for ContentDigestAlgorithm
impl UnwindSafe for ContentDigestAlgorithm
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