pub enum EncryptionContext {
Global,
Specific(String),
}Expand description
Encryption contexts are used to describe the context in which ciphertexts exist (typically, a user’s session).
With the offline feature enabled, contexts can be Global (for offline encryption).
With the legacy feature enabled, specific contexts include an audience_type field.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for EncryptionContext
impl Clone for EncryptionContext
Source§fn clone(&self) -> EncryptionContext
fn clone(&self) -> EncryptionContext
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 EncryptionContext
impl Debug for EncryptionContext
Source§impl<'de> Deserialize<'de> for EncryptionContext
impl<'de> Deserialize<'de> for EncryptionContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EncryptionContext
Source§impl Hash for EncryptionContext
impl Hash for EncryptionContext
Source§impl PartialEq for EncryptionContext
impl PartialEq for EncryptionContext
Source§fn eq(&self, other: &EncryptionContext) -> bool
fn eq(&self, other: &EncryptionContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EncryptionContext
impl Serialize for EncryptionContext
impl StructuralPartialEq for EncryptionContext
Auto Trait Implementations§
impl Freeze for EncryptionContext
impl RefUnwindSafe for EncryptionContext
impl Send for EncryptionContext
impl Sync for EncryptionContext
impl Unpin for EncryptionContext
impl UnsafeUnpin for EncryptionContext
impl UnwindSafe for EncryptionContext
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