pub struct CollectionDigestPinV1(/* private fields */);Expand description
An optional asserted lowercase SHA-256 digest for one source.
Implementations§
Source§impl CollectionDigestPinV1
impl CollectionDigestPinV1
Sourcepub fn new(value: impl Into<String>) -> Result<Self, CollectionManifestError>
pub fn new(value: impl Into<String>) -> Result<Self, CollectionManifestError>
Construct one exact SHA-256 digest pin.
§Errors
Returns CollectionManifestError::InvalidDigest when the value is
not 64 lowercase hexadecimal digits.
Trait Implementations§
Source§impl Clone for CollectionDigestPinV1
impl Clone for CollectionDigestPinV1
Source§fn clone(&self) -> CollectionDigestPinV1
fn clone(&self) -> CollectionDigestPinV1
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 CollectionDigestPinV1
impl Debug for CollectionDigestPinV1
impl Eq for CollectionDigestPinV1
Source§impl Hash for CollectionDigestPinV1
impl Hash for CollectionDigestPinV1
Source§impl Ord for CollectionDigestPinV1
impl Ord for CollectionDigestPinV1
Source§fn cmp(&self, other: &CollectionDigestPinV1) -> Ordering
fn cmp(&self, other: &CollectionDigestPinV1) -> 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 CollectionDigestPinV1
impl PartialEq for CollectionDigestPinV1
Source§impl PartialOrd for CollectionDigestPinV1
impl PartialOrd for CollectionDigestPinV1
Source§impl Serialize for CollectionDigestPinV1
impl Serialize for CollectionDigestPinV1
impl StructuralPartialEq for CollectionDigestPinV1
Auto Trait Implementations§
impl Freeze for CollectionDigestPinV1
impl RefUnwindSafe for CollectionDigestPinV1
impl Send for CollectionDigestPinV1
impl Sync for CollectionDigestPinV1
impl Unpin for CollectionDigestPinV1
impl UnsafeUnpin for CollectionDigestPinV1
impl UnwindSafe for CollectionDigestPinV1
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