pub enum SigningKeyStatus {
SignAndVerify,
VerifyOnly,
}Expand description
Indicates the status of a SigningKey.
Variants§
SignAndVerify
The key may be used to both sign new tokens, and verify existing tokens.
VerifyOnly
The key may be used only to verify existing tokens. New tokens will never be signed using a key with this status. This allows you to deprecate a key you intend to replace.
Trait Implementations§
Source§impl Clone for SigningKeyStatus
impl Clone for SigningKeyStatus
Source§fn clone(&self) -> SigningKeyStatus
fn clone(&self) -> SigningKeyStatus
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 moreSource§impl Debug for SigningKeyStatus
impl Debug for SigningKeyStatus
Source§impl PartialEq for SigningKeyStatus
impl PartialEq for SigningKeyStatus
impl StructuralPartialEq for SigningKeyStatus
Auto Trait Implementations§
impl Freeze for SigningKeyStatus
impl RefUnwindSafe for SigningKeyStatus
impl Send for SigningKeyStatus
impl Sync for SigningKeyStatus
impl Unpin for SigningKeyStatus
impl UnwindSafe for SigningKeyStatus
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