pub struct AuditPolicy {
pub log_path: Option<PathBuf>,
pub log_format: String,
pub log_allowed: bool,
}Expand description
Audit logging configuration for egress events.
Fields§
§log_path: Option<PathBuf>Path to write audit log.
log_format: StringLog format: "json" or "text".
log_allowed: boolLog allowed requests too (not just blocked). Default: false.
Trait Implementations§
Source§impl Clone for AuditPolicy
impl Clone for AuditPolicy
Source§fn clone(&self) -> AuditPolicy
fn clone(&self) -> AuditPolicy
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 AuditPolicy
impl Debug for AuditPolicy
Source§impl Default for AuditPolicy
impl Default for AuditPolicy
Source§impl<'de> Deserialize<'de> for AuditPolicy
impl<'de> Deserialize<'de> for AuditPolicy
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 AuditPolicy
impl RefUnwindSafe for AuditPolicy
impl Send for AuditPolicy
impl Sync for AuditPolicy
impl Unpin for AuditPolicy
impl UnsafeUnpin for AuditPolicy
impl UnwindSafe for AuditPolicy
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