pub struct SetUserAgentOverrideCommandBuilder { /* private fields */ }Available on crate features
Emulation and DOM and Page and Runtime only.Implementations§
Source§impl SetUserAgentOverrideCommandBuilder
impl SetUserAgentOverrideCommandBuilder
Sourcepub fn user_agent(&mut self, v: String) -> &mut Self
pub fn user_agent(&mut self, v: String) -> &mut Self
User agent to use.
Sourcepub fn accept_language(&mut self, v: String) -> &mut Self
pub fn accept_language(&mut self, v: String) -> &mut Self
Browser langugage to emulate.
Sourcepub fn platform(&mut self, v: String) -> &mut Self
pub fn platform(&mut self, v: String) -> &mut Self
The platform navigator.platform should return.
Sourcepub fn user_agent_metadata(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn user_agent_metadata(&mut self, v: JsonValue) -> &mut Self
experimental only.To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
pub fn build(&mut self) -> Result<SetUserAgentOverrideCommand, &'static str>
Trait Implementations§
Source§impl Clone for SetUserAgentOverrideCommandBuilder
impl Clone for SetUserAgentOverrideCommandBuilder
Source§fn clone(&self) -> SetUserAgentOverrideCommandBuilder
fn clone(&self) -> SetUserAgentOverrideCommandBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetUserAgentOverrideCommandBuilder
impl RefUnwindSafe for SetUserAgentOverrideCommandBuilder
impl Send for SetUserAgentOverrideCommandBuilder
impl Sync for SetUserAgentOverrideCommandBuilder
impl Unpin for SetUserAgentOverrideCommandBuilder
impl UnwindSafe for SetUserAgentOverrideCommandBuilder
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