Enum JwsAlgorithm
pub enum JwsAlgorithm {
P256,
P384,
P521,
Ed25519,
}Expand description
Narrows the supported signature algorithms to the ones we define
Variants§
P256
ECDSA using P-256 and SHA-256
Specified in RFC 7518 Section 3.4: Digital Signature with ECDSA
P384
ECDSA using P-384 and SHA-384
Specified in RFC 7518 Section 3.4: Digital Signature with ECDSA
P521
ECDSA using P-521 and SHA-512
Specified in RFC 7518 Section 3.4: Digital Signature with ECDSA
Ed25519
Trait Implementations§
§impl Clone for JwsAlgorithm
impl Clone for JwsAlgorithm
§fn clone(&self) -> JwsAlgorithm
fn clone(&self) -> JwsAlgorithm
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 JwsAlgorithm
impl Debug for JwsAlgorithm
§impl<'de> Deserialize<'de> for JwsAlgorithm
impl<'de> Deserialize<'de> for JwsAlgorithm
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JwsAlgorithm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JwsAlgorithm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for JwsAlgorithm
impl Display for JwsAlgorithm
§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 From<JwsEcAlgorithm> for JwsAlgorithm
impl From<JwsEcAlgorithm> for JwsAlgorithm
§fn from(alg: JwsEcAlgorithm) -> JwsAlgorithm
fn from(alg: JwsEcAlgorithm) -> JwsAlgorithm
Converts to this type from the input type.
§impl From<JwsEdAlgorithm> for JwsAlgorithm
impl From<JwsEdAlgorithm> for JwsAlgorithm
§fn from(alg: JwsEdAlgorithm) -> JwsAlgorithm
fn from(alg: JwsEdAlgorithm) -> JwsAlgorithm
Converts to this type from the input type.
§impl PartialEq for JwsAlgorithm
impl PartialEq for JwsAlgorithm
§impl Serialize for JwsAlgorithm
impl Serialize for JwsAlgorithm
§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 TryFrom<&str> for JwsAlgorithm
impl TryFrom<&str> for JwsAlgorithm
§type Error = RustyJwtError
type Error = RustyJwtError
The type returned in the event of a conversion error.
§fn try_from(
alg: &str,
) -> Result<JwsAlgorithm, <JwsAlgorithm as TryFrom<&str>>::Error>
fn try_from( alg: &str, ) -> Result<JwsAlgorithm, <JwsAlgorithm as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for JwsAlgorithm
impl Eq for JwsAlgorithm
impl StructuralPartialEq for JwsAlgorithm
Auto Trait Implementations§
impl Freeze for JwsAlgorithm
impl RefUnwindSafe for JwsAlgorithm
impl Send for JwsAlgorithm
impl Sync for JwsAlgorithm
impl Unpin for JwsAlgorithm
impl UnwindSafe for JwsAlgorithm
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