pub struct UserAgentOverride {
pub user_agent: String,
pub accept_language: Option<String>,
pub platform: Option<String>,
pub metadata: Option<UserAgentMetadataOverride>,
}Expand description
High level user agent override description.
Fields§
§user_agent: String§accept_language: Option<String>§platform: Option<String>§metadata: Option<UserAgentMetadataOverride>Implementations§
Source§impl UserAgentOverride
impl UserAgentOverride
pub fn new<T: Into<String>>(user_agent: T) -> Self
pub fn with_accept_language<T: Into<String>>(self, value: T) -> Self
pub fn with_platform<T: Into<String>>(self, value: T) -> Self
pub fn with_metadata(self, metadata: UserAgentMetadataOverride) -> Self
Trait Implementations§
Source§impl Clone for UserAgentOverride
impl Clone for UserAgentOverride
Source§fn clone(&self) -> UserAgentOverride
fn clone(&self) -> UserAgentOverride
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 moreAuto Trait Implementations§
impl Freeze for UserAgentOverride
impl RefUnwindSafe for UserAgentOverride
impl Send for UserAgentOverride
impl Sync for UserAgentOverride
impl Unpin for UserAgentOverride
impl UnwindSafe for UserAgentOverride
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