pub struct EgressConfig {
pub enabled: bool,
pub log_blocked: bool,
pub log_response_bytes: bool,
pub log_hosts_to_tui: bool,
}Expand description
Configuration for egress network event logging.
Controls what outbound HTTP events are emitted to the audit JSONL stream and
surfaced in the TUI Security panel. Domain allow/deny policy is NOT duplicated
here — it remains solely in ScrapeConfig.
Fields§
§enabled: boolMaster switch for egress event emission. Default: true.
log_blocked: boolEmit EgressEvents for requests blocked by
SSRF/domain/scheme checks. Default: true.
log_response_bytes: boolInclude response_bytes in the JSONL record. Default: true.
log_hosts_to_tui: boolShow real hostname in MetricsSnapshot::egress_recent (TUI). When false,
"***" is stored instead. JSONL always keeps the real host. Default: true.
Trait Implementations§
Source§impl Clone for EgressConfig
impl Clone for EgressConfig
Source§fn clone(&self) -> EgressConfig
fn clone(&self) -> EgressConfig
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 EgressConfig
impl Debug for EgressConfig
Source§impl Default for EgressConfig
impl Default for EgressConfig
Source§impl<'de> Deserialize<'de> for EgressConfigwhere
EgressConfig: Default,
impl<'de> Deserialize<'de> for EgressConfigwhere
EgressConfig: Default,
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 EgressConfig
impl RefUnwindSafe for EgressConfig
impl Send for EgressConfig
impl Sync for EgressConfig
impl Unpin for EgressConfig
impl UnsafeUnpin for EgressConfig
impl UnwindSafe for EgressConfig
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