pub enum HashAlgorithm {
SHA224,
SHA256,
SHA384,
SHA512,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
Returns a copy 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 HashAlgorithm
impl Debug for HashAlgorithm
source§impl<'de> Deserialize<'de> for HashAlgorithm
impl<'de> Deserialize<'de> for HashAlgorithm
source§fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Self, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&HashAlgorithm> for ObjectIdentifierAsn1
impl From<&HashAlgorithm> for ObjectIdentifierAsn1
source§fn from(variant: &HashAlgorithm) -> Self
fn from(variant: &HashAlgorithm) -> Self
Converts to this type from the input type.
source§impl PartialEq<HashAlgorithm> for HashAlgorithm
impl PartialEq<HashAlgorithm> for HashAlgorithm
source§fn eq(&self, other: &HashAlgorithm) -> bool
fn eq(&self, other: &HashAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HashAlgorithm
impl Serialize for HashAlgorithm
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<ObjectIdentifierAsn1> for HashAlgorithm
impl TryFrom<ObjectIdentifierAsn1> for HashAlgorithm
§type Error = UnsupportedAlgorithmError
type Error = UnsupportedAlgorithmError
The type returned in the event of a conversion error.
impl Copy for HashAlgorithm
impl Eq for HashAlgorithm
impl StructuralEq for HashAlgorithm
impl StructuralPartialEq for HashAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Unpin for HashAlgorithm
impl UnwindSafe for HashAlgorithm
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