Enum jsonwebtoken::jwk::PublicKeyUse
source · pub enum PublicKeyUse {
Signature,
Encryption,
Other(String),
}
Expand description
The intended usage of the public KeyType
. This enum is serialized untagged
Variants§
Signature
Indicates a public key is meant for signature verification
Encryption
Indicates a public key is meant for encryption
Other(String)
Other usage
Trait Implementations§
source§impl Clone for PublicKeyUse
impl Clone for PublicKeyUse
source§fn clone(&self) -> PublicKeyUse
fn clone(&self) -> PublicKeyUse
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 PublicKeyUse
impl Debug for PublicKeyUse
source§impl<'de> Deserialize<'de> for PublicKeyUse
impl<'de> Deserialize<'de> for PublicKeyUse
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 PublicKeyUse
impl Hash for PublicKeyUse
source§impl PartialEq<PublicKeyUse> for PublicKeyUse
impl PartialEq<PublicKeyUse> for PublicKeyUse
source§fn eq(&self, other: &PublicKeyUse) -> bool
fn eq(&self, other: &PublicKeyUse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PublicKeyUse
impl Serialize for PublicKeyUse
impl Eq for PublicKeyUse
impl StructuralEq for PublicKeyUse
impl StructuralPartialEq for PublicKeyUse
Auto Trait Implementations§
impl RefUnwindSafe for PublicKeyUse
impl Send for PublicKeyUse
impl Sync for PublicKeyUse
impl Unpin for PublicKeyUse
impl UnwindSafe for PublicKeyUse
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