pub struct SetUserAgentOverrideCommand { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Expand description
Allows overriding user agent with the given string.
Implementations§
Source§impl SetUserAgentOverrideCommand
impl SetUserAgentOverrideCommand
pub fn builder() -> SetUserAgentOverrideCommandBuilder
Sourcepub fn user_agent(&self) -> &str
pub fn user_agent(&self) -> &str
User agent to use.
Sourcepub fn accept_language(&self) -> Option<&String>
pub fn accept_language(&self) -> Option<&String>
Browser langugage to emulate.
Sourcepub fn user_agent_metadata(&self) -> Option<&JsonValue>
Available on crate feature experimental only.
pub fn user_agent_metadata(&self) -> Option<&JsonValue>
experimental only.To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
Trait Implementations§
Source§impl Clone for SetUserAgentOverrideCommand
impl Clone for SetUserAgentOverrideCommand
Source§fn clone(&self) -> SetUserAgentOverrideCommand
fn clone(&self) -> SetUserAgentOverrideCommand
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 SetUserAgentOverrideCommand
impl Debug for SetUserAgentOverrideCommand
Source§impl<'de> Deserialize<'de> for SetUserAgentOverrideCommand
impl<'de> Deserialize<'de> for SetUserAgentOverrideCommand
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
Auto Trait Implementations§
impl Freeze for SetUserAgentOverrideCommand
impl RefUnwindSafe for SetUserAgentOverrideCommand
impl Send for SetUserAgentOverrideCommand
impl Sync for SetUserAgentOverrideCommand
impl Unpin for SetUserAgentOverrideCommand
impl UnwindSafe for SetUserAgentOverrideCommand
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