pub struct NetworkProxy {Show 34 fields
pub enable: bool,
pub network: NetworkProxyNetwork,
pub enable_tunnel: bool,
pub tunnel_settings: NetworkProxyTunnel,
pub certificate_authority: Option<NetworkProxyCertificateAuthority>,
pub custom_requester: bool,
pub compression: NetworkProxyCompression,
pub enable_content_type_matchers: bool,
pub enable_content_type_filters: bool,
pub enable_domain_filter: bool,
pub enable_cache: bool,
pub trust_all_certificates: bool,
pub trust_any_certificate_for_hostname: bool,
pub cache_size: i32,
pub block_extensions: bool,
pub block_urls: bool,
pub content_matcher: String,
pub content_filter: String,
pub cache_matcher: String,
pub extension_filter: String,
pub resource_matcher: String,
pub content_replacers: BTreeMap<String, NetworkProxyContentReplacers>,
pub content_injectors: BTreeMap<String, NetworkProxyContentInjectors>,
pub content_security_policy_manipulators: BTreeMap<String, NetworkProxyCSPManipulators>,
pub request_header_manipulators: BTreeMap<String, NetworkProxyHeaderManipulators>,
pub response_header_manipulators: BTreeMap<String, NetworkProxyHeaderManipulators>,
pub url_filter: String,
pub connect_timeout: u64,
pub request_timeout: u64,
pub use_user_agent_list: bool,
pub user_agent_list_path: String,
pub user_agent_list_type: ProductOSFileFormat,
pub rotate_user_agent: bool,
pub rotate_user_agent_frequency: u32,
}
Fields§
§enable: bool
§network: NetworkProxyNetwork
§enable_tunnel: bool
§tunnel_settings: NetworkProxyTunnel
§custom_requester: bool
§compression: NetworkProxyCompression
§enable_content_type_matchers: bool
§enable_content_type_filters: bool
§enable_domain_filter: bool
§enable_cache: bool
§trust_all_certificates: bool
§trust_any_certificate_for_hostname: bool
§cache_size: i32
§block_extensions: bool
§block_urls: bool
§content_matcher: String
§content_filter: String
§cache_matcher: String
§extension_filter: String
§resource_matcher: String
§content_replacers: BTreeMap<String, NetworkProxyContentReplacers>
§content_injectors: BTreeMap<String, NetworkProxyContentInjectors>
§content_security_policy_manipulators: BTreeMap<String, NetworkProxyCSPManipulators>
§request_header_manipulators: BTreeMap<String, NetworkProxyHeaderManipulators>
§response_header_manipulators: BTreeMap<String, NetworkProxyHeaderManipulators>
§url_filter: String
§connect_timeout: u64
§request_timeout: u64
§use_user_agent_list: bool
§user_agent_list_path: String
§user_agent_list_type: ProductOSFileFormat
§rotate_user_agent: bool
§rotate_user_agent_frequency: u32
Trait Implementations§
Source§impl Clone for NetworkProxy
impl Clone for NetworkProxy
Source§fn clone(&self) -> NetworkProxy
fn clone(&self) -> NetworkProxy
Returns a copy 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 NetworkProxy
impl Debug for NetworkProxy
Source§impl Default for NetworkProxy
impl Default for NetworkProxy
Source§fn default() -> NetworkProxy
fn default() -> NetworkProxy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkProxy
impl<'de> Deserialize<'de> for NetworkProxy
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 NetworkProxy
impl RefUnwindSafe for NetworkProxy
impl Send for NetworkProxy
impl Sync for NetworkProxy
impl Unpin for NetworkProxy
impl UnwindSafe for NetworkProxy
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