pub struct ProxyConfiguration {
pub use_apify_proxy: Option<bool>,
pub apify_proxy_groups: Option<Vec<String>>,
pub apify_proxy_country: Option<String>,
}Expand description
Proxy settings for an Actor run.
Apify runs its own proxy infrastructure (datacenter, residential, …). Most scraping Actors require proxies to reach target sites reliably.
§Example
ⓘ
let proxy = ProxyConfiguration {
use_apify_proxy: Some(true),
apify_proxy_groups: Some(vec!["RESIDENTIAL".to_string()]),
apify_proxy_country: Some("US".to_string()),
};Fields§
§use_apify_proxy: Option<bool>Enable Apify’s managed proxy service.
apify_proxy_groups: Option<Vec<String>>Proxy groups to pull IPs from.
Common values: ["RESIDENTIAL"], ["SHADER"], ["BUYPROXIES94952"].
Verify which groups your subscription includes.
apify_proxy_country: Option<String>ISO country code for geo-targeted proxies (e.g. "US", "DE").
Only honoured by groups that support country selection (e.g. RESIDENTIAL).
Trait Implementations§
Source§impl Clone for ProxyConfiguration
impl Clone for ProxyConfiguration
Source§impl Debug for ProxyConfiguration
impl Debug for ProxyConfiguration
Source§impl<'de> Deserialize<'de> for ProxyConfiguration
impl<'de> Deserialize<'de> for ProxyConfiguration
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 ProxyConfiguration
impl RefUnwindSafe for ProxyConfiguration
impl Send for ProxyConfiguration
impl Sync for ProxyConfiguration
impl Unpin for ProxyConfiguration
impl UnsafeUnpin for ProxyConfiguration
impl UnwindSafe for ProxyConfiguration
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