pub struct EncryptionSettings {
pub key_rotation_enabled: bool,
pub key_rotation_interval: Option<u64>,
}Expand description
Encryption-related settings for a group
Controls various encryption and security features for the group.
Fields§
§key_rotation_enabled: boolWhether to rotate keys periodically (future feature)
When enabled, the group will periodically rotate its encryption keys to provide forward secrecy.
key_rotation_interval: Option<u64>Key rotation interval in seconds (if enabled)
How often to rotate keys when key rotation is enabled.
Implementations§
Source§impl EncryptionSettings
impl EncryptionSettings
Sourcepub fn with_key_rotation(self, interval_seconds: u64) -> Self
pub fn with_key_rotation(self, interval_seconds: u64) -> Self
Enable key rotation with specified interval
Trait Implementations§
Source§impl Clone for EncryptionSettings
impl Clone for EncryptionSettings
Source§fn clone(&self) -> EncryptionSettings
fn clone(&self) -> EncryptionSettings
Returns a duplicate 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 moreSource§impl Debug for EncryptionSettings
impl Debug for EncryptionSettings
Source§impl Default for EncryptionSettings
impl Default for EncryptionSettings
Source§fn default() -> EncryptionSettings
fn default() -> EncryptionSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EncryptionSettings
impl<'de> Deserialize<'de> for EncryptionSettings
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
Source§impl PartialEq for EncryptionSettings
impl PartialEq for EncryptionSettings
Source§impl Serialize for EncryptionSettings
impl Serialize for EncryptionSettings
impl Eq for EncryptionSettings
impl StructuralPartialEq for EncryptionSettings
Auto Trait Implementations§
impl Freeze for EncryptionSettings
impl RefUnwindSafe for EncryptionSettings
impl Send for EncryptionSettings
impl Sync for EncryptionSettings
impl Unpin for EncryptionSettings
impl UnwindSafe for EncryptionSettings
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more