pub struct EmulationConfig {
pub geolocation: Option<Geolocation>,
pub timezone_id: Option<String>,
pub locale: Option<String>,
pub media: Option<MediaEmulation>,
pub user_agent: Option<UserAgentOverride>,
}Expand description
A group of emulation overrides applied to a target.
Fields§
§geolocation: Option<Geolocation>§timezone_id: Option<String>§locale: Option<String>§media: Option<MediaEmulation>§user_agent: Option<UserAgentOverride>Implementations§
Source§impl EmulationConfig
impl EmulationConfig
pub fn with_geolocation(self, geolocation: Geolocation) -> Self
pub fn with_timezone<T: Into<String>>(self, timezone: T) -> Self
pub fn with_locale<T: Into<String>>(self, locale: T) -> Self
pub fn with_media(self, media: MediaEmulation) -> Self
pub fn with_user_agent(self, override_data: UserAgentOverride) -> Self
Trait Implementations§
Source§impl Clone for EmulationConfig
impl Clone for EmulationConfig
Source§fn clone(&self) -> EmulationConfig
fn clone(&self) -> EmulationConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 EmulationConfig
impl Debug for EmulationConfig
Source§impl Default for EmulationConfig
impl Default for EmulationConfig
Source§fn default() -> EmulationConfig
fn default() -> EmulationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmulationConfig
impl RefUnwindSafe for EmulationConfig
impl Send for EmulationConfig
impl Sync for EmulationConfig
impl Unpin for EmulationConfig
impl UnwindSafe for EmulationConfig
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