Enum tiedcrossing_jose::jwk::Key
source · [−]#[non_exhaustive]
pub enum Key {
EllipticCurve {
crv: EllipticCurveType,
d: Option<Bytes<Zeroizing<Vec<u8>>>>,
x: Bytes,
y: Bytes,
},
Rsa {
n: Bytes,
e: Bytes,
prv: Option<RsaPrivate>,
},
Octets {
k: Bytes<Zeroizing<Vec<u8>>>,
},
OctetKeyPair {
crv: OctetKeyPairType,
d: Option<Bytes<Zeroizing<Vec<u8>>>>,
x: Bytes,
},
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EllipticCurve
Rsa
Octets
OctetKeyPair
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
sourcefn 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
impl Eq for Key
impl StructuralEq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more