Enum jsonwebtoken::jwk::EllipticCurve
source · pub enum EllipticCurve {
P256,
P384,
P521,
Ed25519,
}
Expand description
Type of cryptographic curve used by a key. This is defined in RFC 7518 #7.6
Variants§
Trait Implementations§
source§impl Clone for EllipticCurve
impl Clone for EllipticCurve
source§fn clone(&self) -> EllipticCurve
fn clone(&self) -> EllipticCurve
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 EllipticCurve
impl Debug for EllipticCurve
source§impl Default for EllipticCurve
impl Default for EllipticCurve
source§fn default() -> EllipticCurve
fn default() -> EllipticCurve
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EllipticCurve
impl<'de> Deserialize<'de> for EllipticCurve
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for EllipticCurve
impl Hash for EllipticCurve
source§impl PartialEq for EllipticCurve
impl PartialEq for EllipticCurve
source§impl Serialize for EllipticCurve
impl Serialize for EllipticCurve
impl Eq for EllipticCurve
impl StructuralPartialEq for EllipticCurve
Auto Trait Implementations§
impl Freeze for EllipticCurve
impl RefUnwindSafe for EllipticCurve
impl Send for EllipticCurve
impl Sync for EllipticCurve
impl Unpin for EllipticCurve
impl UnwindSafe for EllipticCurve
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)