pub struct NetworkConfig {
pub allow: Vec<String>,
}Expand description
Network access policy.
Fields§
§allow: Vec<String>Allowed domain patterns. Empty = allow all. Supports wildcards: “*.openai.com”, “registry.npmjs.org”.
Implementations§
Source§impl NetworkConfig
impl NetworkConfig
Sourcepub fn has_allowlist(&self) -> bool
pub fn has_allowlist(&self) -> bool
Returns true if a domain allowlist is configured.
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§impl Debug for NetworkConfig
impl Debug for NetworkConfig
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnsafeUnpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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