pub struct SecretConfig {
pub keys: BTreeMap<u32, String>,
pub current_version: u32,
pub legacy_secret: Option<String>,
}Expand description
Secret rotation configuration.
Fields§
§keys: BTreeMap<u32, String>§current_version: u32§legacy_secret: Option<String>Implementations§
Source§impl SecretConfig
impl SecretConfig
Trait Implementations§
Source§impl Clone for SecretConfig
impl Clone for SecretConfig
Source§fn clone(&self) -> SecretConfig
fn clone(&self) -> SecretConfig
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 moreSource§impl Debug for SecretConfig
impl Debug for SecretConfig
Source§impl JweSecretSource for SecretConfig
impl JweSecretSource for SecretConfig
fn current_jwe_secret(&self) -> Result<String, OpenAuthError>
fn all_jwe_secrets(&self) -> Result<Vec<JweSecret>, OpenAuthError>
Source§impl PartialEq for SecretConfig
impl PartialEq for SecretConfig
Source§fn eq(&self, other: &SecretConfig) -> bool
fn eq(&self, other: &SecretConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SecretSource for &SecretConfig
impl SecretSource for &SecretConfig
fn encrypt_current(&self, data: &str) -> Result<String, OpenAuthError>
fn decrypt_payload(&self, data: &str) -> Result<String, OpenAuthError>
impl Eq for SecretConfig
impl StructuralPartialEq for SecretConfig
Auto Trait Implementations§
impl Freeze for SecretConfig
impl RefUnwindSafe for SecretConfig
impl Send for SecretConfig
impl Sync for SecretConfig
impl Unpin for SecretConfig
impl UnsafeUnpin for SecretConfig
impl UnwindSafe for SecretConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.