pub struct SetUserAgentOverride { /* private fields */ }Expand description
Allows overriding user agent with the given string. userAgentMetadata must be set for Client Hint headers to be sent.
Implementations§
Source§impl SetUserAgentOverride
impl SetUserAgentOverride
pub fn new(user_agent: impl Into<String>) -> Self
pub fn with_accept_language(self, accept_language: impl Into<String>) -> Self
pub fn with_platform(self, platform: impl Into<String>) -> Self
pub fn with_user_agent_metadata( self, user_agent_metadata: impl Into<UserAgentMetadata>, ) -> Self
Trait Implementations§
Source§impl Clone for SetUserAgentOverride
impl Clone for SetUserAgentOverride
Source§fn clone(&self) -> SetUserAgentOverride
fn clone(&self) -> SetUserAgentOverride
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 SetUserAgentOverride
impl Debug for SetUserAgentOverride
Source§impl Method for SetUserAgentOverride
impl Method for SetUserAgentOverride
Auto Trait Implementations§
impl Freeze for SetUserAgentOverride
impl RefUnwindSafe for SetUserAgentOverride
impl Send for SetUserAgentOverride
impl Sync for SetUserAgentOverride
impl Unpin for SetUserAgentOverride
impl UnsafeUnpin for SetUserAgentOverride
impl UnwindSafe for SetUserAgentOverride
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