pub enum SecretMaterial {
Single(String),
Rotating(SecretConfig),
}Variants§
Single(String)
Rotating(SecretConfig)
Trait Implementations§
Source§impl Clone for SecretMaterial
impl Clone for SecretMaterial
Source§fn clone(&self) -> SecretMaterial
fn clone(&self) -> SecretMaterial
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 SecretMaterial
impl Debug for SecretMaterial
Source§impl JweSecretSource for SecretMaterial
impl JweSecretSource for SecretMaterial
fn current_jwe_secret(&self) -> Result<String, OpenAuthError>
fn all_jwe_secrets(&self) -> Result<Vec<JweSecret>, OpenAuthError>
Source§impl PartialEq for SecretMaterial
impl PartialEq for SecretMaterial
Source§fn eq(&self, other: &SecretMaterial) -> bool
fn eq(&self, other: &SecretMaterial) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SecretSource for &SecretMaterial
impl SecretSource for &SecretMaterial
fn encrypt_current(&self, data: &str) -> Result<String, OpenAuthError>
fn decrypt_payload(&self, data: &str) -> Result<String, OpenAuthError>
impl Eq for SecretMaterial
impl StructuralPartialEq for SecretMaterial
Auto Trait Implementations§
impl Freeze for SecretMaterial
impl RefUnwindSafe for SecretMaterial
impl Send for SecretMaterial
impl Sync for SecretMaterial
impl Unpin for SecretMaterial
impl UnsafeUnpin for SecretMaterial
impl UnwindSafe for SecretMaterial
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.