Enum HashAlgorithm
pub enum HashAlgorithm {
SHA256,
SHA384,
SHA512,
}Expand description
Narrows the supported hashing algorithms to the ones we define
Variants§
Trait Implementations§
§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
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 more§impl Debug for HashAlgorithm
impl Debug for HashAlgorithm
§impl<'de> Deserialize<'de> for HashAlgorithm
impl<'de> Deserialize<'de> for HashAlgorithm
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HashAlgorithm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HashAlgorithm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for HashAlgorithm
impl Display for HashAlgorithm
§impl From<JwsAlgorithm> for HashAlgorithm
According to MLS defined ciphersuites
impl From<JwsAlgorithm> for HashAlgorithm
According to MLS defined ciphersuites
§fn from(alg: JwsAlgorithm) -> HashAlgorithm
fn from(alg: JwsAlgorithm) -> HashAlgorithm
Converts to this type from the input type.
§impl FromStr for HashAlgorithm
impl FromStr for HashAlgorithm
§type Err = RustyJwtError
type Err = RustyJwtError
The associated error which can be returned from parsing.
§fn from_str(s: &str) -> Result<HashAlgorithm, RustyJwtError>
fn from_str(s: &str) -> Result<HashAlgorithm, RustyJwtError>
Parses a string
s to return a value of this type. Read more§impl PartialEq for HashAlgorithm
impl PartialEq for HashAlgorithm
§impl Serialize for HashAlgorithm
impl Serialize for HashAlgorithm
§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
impl Copy for HashAlgorithm
impl Eq for HashAlgorithm
impl StructuralPartialEq for HashAlgorithm
Auto Trait Implementations§
impl Freeze for HashAlgorithm
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