Struct FallbackConfig
pub struct FallbackConfig {
pub key: Key,
pub algorithm: CryptoAlgorithm,
}
Expand description
A fallback configuration for either decrypting or verifying a cookie.
Check out CryptoRule::fallbacks
for more information.
Fields§
§key: Key
The key to use for encryption or signing.
algorithm: CryptoAlgorithm
How the cookies should be secured.
Trait Implementations§
§impl Clone for FallbackConfig
impl Clone for FallbackConfig
§fn clone(&self) -> FallbackConfig
fn clone(&self) -> FallbackConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for FallbackConfig
impl Debug for FallbackConfig
§impl<'de> Deserialize<'de> for FallbackConfig
impl<'de> Deserialize<'de> for FallbackConfig
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FallbackConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FallbackConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FallbackConfig
impl RefUnwindSafe for FallbackConfig
impl Send for FallbackConfig
impl Sync for FallbackConfig
impl Unpin for FallbackConfig
impl UnwindSafe for FallbackConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)