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§fn default() -> ContextConfig
fn default() -> ContextConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextConfigwhere
ContextConfig: Default,
impl<'de> Deserialize<'de> for ContextConfigwhere
ContextConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ContextConfig
impl Serialize for ContextConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more