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§impl Debug for Impersonate
impl Debug for Impersonate
Source§impl Default for Impersonate
impl Default for Impersonate
impl Eq for Impersonate
Source§impl PartialEq for Impersonate
impl PartialEq for Impersonate
impl StructuralPartialEq for Impersonate
Auto Trait Implementations§
impl Forget for Impersonate
impl Freeze for Impersonate
impl Move 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