pub struct SecureLogConfig {
pub path: PathBuf,
pub encryption_key: Option<[u8; 32]>,
pub hmac_key: [u8; 32],
}Expand description
Configuration for the secure log
Fields§
§path: PathBufPath to the log file
encryption_key: Option<[u8; 32]>Encryption key (32 bytes for AES-256). If None, no encryption.
hmac_key: [u8; 32]HMAC key for integrity chain (32 bytes)
Implementations§
Trait Implementations§
Source§impl Clone for SecureLogConfig
impl Clone for SecureLogConfig
Source§fn clone(&self) -> SecureLogConfig
fn clone(&self) -> SecureLogConfig
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 moreAuto Trait Implementations§
impl Freeze for SecureLogConfig
impl RefUnwindSafe for SecureLogConfig
impl Send for SecureLogConfig
impl Sync for SecureLogConfig
impl Unpin for SecureLogConfig
impl UnwindSafe for SecureLogConfig
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