pub struct PrivacySettings {
pub require_proof_of_humanity: bool,
pub max_contact_request_age: Duration,
pub enable_forward_secrecy: bool,
pub auto_rotate_keys: bool,
pub key_rotation_interval: Duration,
}
Expand description
Additional privacy controls
Fields§
§require_proof_of_humanity: bool
Require proof-of-humanity for contact requests
max_contact_request_age: Duration
Maximum age for accepting contact requests
enable_forward_secrecy: bool
Enable perfect forward secrecy for messages
auto_rotate_keys: bool
Auto-rotate profile keys
key_rotation_interval: Duration
Key rotation interval
Trait Implementations§
Source§impl Clone for PrivacySettings
impl Clone for PrivacySettings
Source§fn clone(&self) -> PrivacySettings
fn clone(&self) -> PrivacySettings
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrivacySettings
impl Debug for PrivacySettings
Source§impl<'de> Deserialize<'de> for PrivacySettings
impl<'de> Deserialize<'de> for PrivacySettings
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
Auto Trait Implementations§
impl Freeze for PrivacySettings
impl RefUnwindSafe for PrivacySettings
impl Send for PrivacySettings
impl Sync for PrivacySettings
impl Unpin for PrivacySettings
impl UnwindSafe for PrivacySettings
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