#[non_exhaustive]pub enum SigningKeyStatus {
Active,
Retiring,
}Expand description
Lifecycle state of a signing key inside cheers’s published JWKS.
Active keys are the ones cheers verifies tokens against without
caveat. Retiring keys are still served in the JWKS (because in-flight
tokens signed under them must still verify) but no consumer should mint
new tokens with them — once retire_at has passed,
prune_retired_keys
drops them from the table and the next JWKS publication no longer
includes them.
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.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SigningKeyStatus
Source§impl Debug for SigningKeyStatus
impl Debug for SigningKeyStatus
Source§impl<'de> Deserialize<'de> for SigningKeyStatus
impl<'de> Deserialize<'de> for SigningKeyStatus
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
impl Eq for SigningKeyStatus
Source§impl PartialEq for SigningKeyStatus
impl PartialEq for SigningKeyStatus
Source§impl Serialize for SigningKeyStatus
impl Serialize 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 UnsafeUnpin 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