pub struct JwtKey {
pub kid: String,
pub secret: String,
pub created_at: DateTime<Utc>,
pub retired_at: Option<DateTime<Utc>>,
}Expand description
A single HMAC signing key with lifecycle metadata
Fields§
§kid: StringUnique key identifier (included in JWT header as kid)
secret: StringThe HMAC secret
created_at: DateTime<Utc>When this key was created
retired_at: Option<DateTime<Utc>>When this key was retired (rotated out)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JwtKey
impl RefUnwindSafe for JwtKey
impl Send for JwtKey
impl Sync for JwtKey
impl Unpin for JwtKey
impl UnsafeUnpin for JwtKey
impl UnwindSafe for JwtKey
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