pub struct ConnectionLogAnonymization {
pub hash_client_ips: bool,
pub truncate_client_ips: bool,
pub hash_usernames: bool,
pub round_timestamps: bool,
pub aggregate_transfer_stats: bool,
}Expand description
Connection log anonymization settings
Fields§
§hash_client_ips: boolHash client IP addresses instead of storing them plain Uses HMAC-SHA256 with a daily rotating salt for unlinkability
truncate_client_ips: boolTruncate client IPs to /24 (IPv4) or /48 (IPv6) for reduced precision
hash_usernames: boolDon’t log usernames, only hashed identifiers
round_timestamps: boolRound timestamps to nearest hour to reduce precision
aggregate_transfer_stats: boolAggregate transfer stats into buckets instead of exact bytes
Trait Implementations§
Source§impl Clone for ConnectionLogAnonymization
impl Clone for ConnectionLogAnonymization
Source§fn clone(&self) -> ConnectionLogAnonymization
fn clone(&self) -> ConnectionLogAnonymization
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 ConnectionLogAnonymization
impl Debug for ConnectionLogAnonymization
Source§impl Default for ConnectionLogAnonymization
impl Default for ConnectionLogAnonymization
Source§fn default() -> ConnectionLogAnonymization
fn default() -> ConnectionLogAnonymization
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectionLogAnonymization
impl<'de> Deserialize<'de> for ConnectionLogAnonymization
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 ConnectionLogAnonymization
impl RefUnwindSafe for ConnectionLogAnonymization
impl Send for ConnectionLogAnonymization
impl Sync for ConnectionLogAnonymization
impl Unpin for ConnectionLogAnonymization
impl UnwindSafe for ConnectionLogAnonymization
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