pub enum Impersonate {
Chrome,
Firefox,
Safari,
Named(String),
Random,
None,
}Expand description
How the client should present itself on the wire.
Variants§
Chrome
A recent Chrome build. The default, and what almost everyone wants.
Firefox
A recent Firefox build.
Safari
A recent Safari build.
Named(String)
A named wreq-util profile, e.g. "chrome_143" or "safari_ios_26".
Random
Market-share weighted random profile, re-rolled per client.
None
No emulation: plain TLS and a rustai/x.y.z User-Agent.
Implementations§
Source§impl Impersonate
impl Impersonate
Sourcepub fn parse(s: &str) -> Result<Impersonate>
pub fn parse(s: &str) -> Result<Impersonate>
Parse the string form used by the Python API.
Trait Implementations§
Source§impl Clone for Impersonate
impl Clone for Impersonate
Source§fn clone(&self) -> Impersonate
fn clone(&self) -> Impersonate
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§impl Debug for Impersonate
impl Debug for Impersonate
Source§impl Default for Impersonate
impl Default for Impersonate
Source§fn default() -> Impersonate
fn default() -> Impersonate
Returns the “default value” for a type. Read more
impl Eq for Impersonate
Source§impl PartialEq for Impersonate
impl PartialEq for Impersonate
impl StructuralPartialEq for Impersonate
Auto Trait Implementations§
impl Freeze for Impersonate
impl RefUnwindSafe for Impersonate
impl Send for Impersonate
impl Sync for Impersonate
impl Unpin for Impersonate
impl UnsafeUnpin for Impersonate
impl UnwindSafe for Impersonate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more