#[non_exhaustive]pub struct JwtKeys {
pub secret: Vec<u8>,
pub previous_secret: Option<Vec<u8>>,
pub key_id: Option<String>,
pub private_key: Option<Vec<u8>>,
}Expand description
New keys for the tokens a server validates (key rotation). Its Debug
print leaves the keys out.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.secret: Vec<u8>§previous_secret: Option<Vec<u8>>§key_id: Option<String>§private_key: Option<Vec<u8>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for JwtKeys
impl Freeze for JwtKeys
impl Move for JwtKeys
impl RefUnwindSafe for JwtKeys
impl Send for JwtKeys
impl Sync for JwtKeys
impl Unpin for JwtKeys
impl UnsafeUnpin for JwtKeys
impl UnwindSafe for JwtKeys
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