pub struct ConsentConfig {
pub enabled: bool,
pub default_expiration_days: Option<u32>,
pub require_explicit_consent: bool,
pub enable_audit_log: bool,
pub audit_log_path: Option<PathBuf>,
pub cleanup_expired_after_days: u32,
}
Expand description
Consent manager configuration
Fields§
§enabled: bool
Enable consent management
default_expiration_days: Option<u32>
Default consent expiration in days (None = no expiration)
require_explicit_consent: bool
Require explicit consent for all operations
enable_audit_log: bool
Enable consent audit logging
audit_log_path: Option<PathBuf>
Path for consent audit log
cleanup_expired_after_days: u32
Automatic cleanup of expired consents after days
Trait Implementations§
Source§impl Clone for ConsentConfig
impl Clone for ConsentConfig
Source§fn clone(&self) -> ConsentConfig
fn clone(&self) -> ConsentConfig
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 ConsentConfig
impl Debug for ConsentConfig
Auto Trait Implementations§
impl Freeze for ConsentConfig
impl RefUnwindSafe for ConsentConfig
impl Send for ConsentConfig
impl Sync for ConsentConfig
impl Unpin for ConsentConfig
impl UnwindSafe for ConsentConfig
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