pub struct UserAgentOptions {
pub browser: Option<Browser>,
pub platform: Option<String>,
pub desktop: bool,
pub mobile: bool,
pub custom: Option<String>,
pub allow_brotli: bool,
}Expand description
Options for user-agent selection.
Fields§
§browser: Option<Browser>Force a specific browser.
platform: Option<String>Force a specific platform.
desktop: boolInclude desktop agents.
mobile: boolInclude mobile agents.
custom: Option<String>Use a fully custom user-agent string.
allow_brotli: boolAllow brotli encoding.
Trait Implementations§
Source§impl Clone for UserAgentOptions
impl Clone for UserAgentOptions
Source§fn clone(&self) -> UserAgentOptions
fn clone(&self) -> UserAgentOptions
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 UserAgentOptions
impl Debug for UserAgentOptions
Auto Trait Implementations§
impl Freeze for UserAgentOptions
impl RefUnwindSafe for UserAgentOptions
impl Send for UserAgentOptions
impl Sync for UserAgentOptions
impl Unpin for UserAgentOptions
impl UnsafeUnpin for UserAgentOptions
impl UnwindSafe for UserAgentOptions
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