pub struct NavigatorConfig {Show 24 fields
pub app_version: Option<String>,
pub platform: Option<String>,
pub language: Option<String>,
pub languages: Option<Vec<String>>,
pub hardware_concurrency: Option<u32>,
pub device_memory_gb: Option<u32>,
pub max_touch_points: Option<u32>,
pub do_not_track: Option<String>,
pub global_privacy_control: Option<bool>,
pub expose_global_privacy_control: Option<bool>,
pub permissions_enabled: Option<bool>,
pub bluetooth_enabled: Option<bool>,
pub bluetooth_available: Option<bool>,
pub media_devices_enabled: Option<bool>,
pub webgpu_enabled: Option<bool>,
pub offscreen_canvas_enabled: Option<bool>,
pub service_worker_enabled: Option<bool>,
pub ua_platform_version: Option<String>,
pub ua_architecture: Option<String>,
pub ua_bitness: Option<String>,
pub ua_model: Option<String>,
pub vendor: Option<String>,
pub product_sub: Option<String>,
pub pdf_viewer_enabled: Option<bool>,
}Expand description
Optional navigator and JS capability overrides.
Fields§
§app_version: Option<String>§platform: Option<String>§language: Option<String>§languages: Option<Vec<String>>§hardware_concurrency: Option<u32>§device_memory_gb: Option<u32>§max_touch_points: Option<u32>§do_not_track: Option<String>§global_privacy_control: Option<bool>§expose_global_privacy_control: Option<bool>§permissions_enabled: Option<bool>§bluetooth_enabled: Option<bool>§bluetooth_available: Option<bool>§media_devices_enabled: Option<bool>§webgpu_enabled: Option<bool>§offscreen_canvas_enabled: Option<bool>§service_worker_enabled: Option<bool>§ua_platform_version: Option<String>§ua_architecture: Option<String>§ua_bitness: Option<String>§ua_model: Option<String>§vendor: Option<String>§product_sub: Option<String>§pdf_viewer_enabled: Option<bool>Trait Implementations§
Source§fn clone(&self) -> NavigatorConfig
fn clone(&self) -> NavigatorConfig
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§fn default() -> NavigatorConfig
fn default() -> NavigatorConfig
Returns the “default value” for a type. Read more
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
Source§fn eq(&self, other: &NavigatorConfig) -> bool
fn eq(&self, other: &NavigatorConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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