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
sourceimpl Clone for PublicKeyUse
impl Clone for PublicKeyUse
sourcefn clone(&self) -> PublicKeyUse
fn clone(&self) -> PublicKeyUse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PublicKeyUse
impl Debug for PublicKeyUse
sourceimpl<'de> Deserialize<'de> for PublicKeyUse
impl<'de> Deserialize<'de> for PublicKeyUse
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
sourceimpl Hash for PublicKeyUse
impl Hash for PublicKeyUse
sourceimpl PartialEq<PublicKeyUse> for PublicKeyUse
impl PartialEq<PublicKeyUse> for PublicKeyUse
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PublicKeyUse) -> bool
fn ne(&self, other: &PublicKeyUse) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more