NewContextArgs

Struct NewContextArgs 

Source
pub(crate) struct NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k> {
Show 26 fields sdk_language: &'static str, pub(crate) timeout: Option<f64>, pub(crate) proxy: Option<ProxySettings>, pub(crate) viewport: Option<Option<Viewport>>, pub(crate) screen: Option<Viewport>, pub(crate) no_viewport: Option<bool>, pub(crate) ignore_https_errors: Option<bool>, pub(crate) js_enabled: Option<bool>, pub(crate) bypass_csp: Option<bool>, pub(crate) user_agent: Option<&'e str>, pub(crate) locale: Option<&'f str>, pub(crate) timezone_id: Option<&'g str>, pub(crate) geolocation: Option<Geolocation>, pub(crate) permissions: Option<&'h [String]>, pub(crate) extra_http_headers: Option<HashMap<String, String>>, pub(crate) offline: Option<bool>, pub(crate) http_credentials: Option<&'i HttpCredentials>, pub(crate) device_scale_factor: Option<f64>, pub(crate) is_mobile: Option<bool>, pub(crate) has_touch: Option<bool>, pub(crate) color_scheme: Option<ColorScheme>, pub(crate) accept_downloads: Option<bool>, pub(crate) chromium_sandbox: Option<bool>, pub(crate) record_video: Option<RecordVideo<'j>>, pub(crate) record_har: Option<RecordHar<'k>>, pub(crate) storage_state: Option<StorageState>,
}

Fields§

§sdk_language: &'static str§timeout: Option<f64>§proxy: Option<ProxySettings>§viewport: Option<Option<Viewport>>§screen: Option<Viewport>§no_viewport: Option<bool>§ignore_https_errors: Option<bool>§js_enabled: Option<bool>§bypass_csp: Option<bool>§user_agent: Option<&'e str>§locale: Option<&'f str>§timezone_id: Option<&'g str>§geolocation: Option<Geolocation>§permissions: Option<&'h [String]>§extra_http_headers: Option<HashMap<String, String>>§offline: Option<bool>§http_credentials: Option<&'i HttpCredentials>§device_scale_factor: Option<f64>§is_mobile: Option<bool>§has_touch: Option<bool>§color_scheme: Option<ColorScheme>§accept_downloads: Option<bool>§chromium_sandbox: Option<bool>§record_video: Option<RecordVideo<'j>>§record_har: Option<RecordHar<'k>>§storage_state: Option<StorageState>

Trait Implementations§

Source§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> Debug for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> Default for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> Serialize for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> Freeze for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> RefUnwindSafe for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> Send for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> Sync for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> Unpin for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'e, 'f, 'g, 'h, 'i, 'j, 'k> UnwindSafe for NewContextArgs<'e, 'f, 'g, 'h, 'i, 'j, 'k>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.