pub struct BrowserAutomationConfig {
pub enabled: bool,
pub allowed_domains: Vec<String>,
pub blocked_domains: Vec<String>,
pub allowed_verbs: Vec<String>,
pub credential_detection: bool,
pub extra_credential_patterns: Vec<String>,
}Expand description
Configuration for BrowserAutomationGuard.
Fields§
§enabled: boolEnable/disable the guard entirely.
allowed_domains: Vec<String>Hosts the agent may navigate to. Supports exact match and
*.suffix wildcard patterns. Empty means “no allowlist”
(navigation check is skipped).
blocked_domains: Vec<String>Blocked hosts (always denied, evaluated before the allowlist).
allowed_verbs: Vec<String>Verbs (actions) the agent may issue. Empty means “any verb”.
credential_detection: boolWhen true, check type / input action values for
credential-shaped secrets.
extra_credential_patterns: Vec<String>Extra credential regex patterns layered on top of the built-in detectors. Invalid regexes cause initialization to fail.
Trait Implementations§
Source§impl Clone for BrowserAutomationConfig
impl Clone for BrowserAutomationConfig
Source§fn clone(&self) -> BrowserAutomationConfig
fn clone(&self) -> BrowserAutomationConfig
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 BrowserAutomationConfig
impl Debug for BrowserAutomationConfig
Source§impl Default for BrowserAutomationConfig
impl Default for BrowserAutomationConfig
Source§impl<'de> Deserialize<'de> for BrowserAutomationConfig
impl<'de> Deserialize<'de> for BrowserAutomationConfig
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 BrowserAutomationConfig
impl RefUnwindSafe for BrowserAutomationConfig
impl Send for BrowserAutomationConfig
impl Sync for BrowserAutomationConfig
impl Unpin for BrowserAutomationConfig
impl UnsafeUnpin for BrowserAutomationConfig
impl UnwindSafe for BrowserAutomationConfig
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