pub struct ContextConfig {Show 21 fields
pub is_mobile: bool,
pub has_touch: bool,
pub color_scheme: Option<String>,
pub locale: Option<String>,
pub device_scale_factor: Option<f64>,
pub offline: bool,
pub java_script_enabled: bool,
pub bypass_csp: bool,
pub accept_downloads: bool,
pub user_agent: Option<String>,
pub timezone_id: Option<String>,
pub geolocation: Option<GeolocationConfig>,
pub permissions: Vec<String>,
pub extra_http_headers: BTreeMap<String, String>,
pub http_credentials: Option<HttpCredentialsConfig>,
pub ignore_https_errors: bool,
pub proxy: Option<ProxyConfig>,
pub service_workers: Option<String>,
pub storage_state: Option<String>,
pub reduced_motion: Option<String>,
pub forced_colors: Option<String>,
}Fields§
§is_mobile: bool§has_touch: bool§color_scheme: Option<String>§locale: Option<String>§device_scale_factor: Option<f64>§offline: bool§java_script_enabled: bool§bypass_csp: bool§accept_downloads: bool§user_agent: Option<String>§timezone_id: Option<String>§geolocation: Option<GeolocationConfig>§permissions: Vec<String>§extra_http_headers: BTreeMap<String, String>§http_credentials: Option<HttpCredentialsConfig>§ignore_https_errors: bool§proxy: Option<ProxyConfig>§service_workers: Option<String>§storage_state: Option<String>§reduced_motion: Option<String>§forced_colors: Option<String>Trait Implementations§
Source§impl Clone for ContextConfig
impl Clone for ContextConfig
Source§fn clone(&self) -> ContextConfig
fn clone(&self) -> ContextConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContextConfig
impl Debug for ContextConfig
Source§impl Default for ContextConfig
impl Default for ContextConfig
Source§impl<'de> Deserialize<'de> for ContextConfigwhere
ContextConfig: Default,
impl<'de> Deserialize<'de> for ContextConfigwhere
ContextConfig: 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 ContextConfig
impl RefUnwindSafe for ContextConfig
impl Send for ContextConfig
impl Sync for ContextConfig
impl Unpin for ContextConfig
impl UnsafeUnpin for ContextConfig
impl UnwindSafe for ContextConfig
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