pub struct UserAgentMetadataOverride {
pub brands: Vec<UserAgentBrand>,
pub full_version_list: Vec<UserAgentBrand>,
pub full_version: Option<String>,
pub platform: Option<String>,
pub platform_version: Option<String>,
pub architecture: Option<String>,
pub model: Option<String>,
pub mobile: Option<bool>,
pub bitness: Option<String>,
pub wow64: Option<bool>,
pub form_factors: Vec<String>,
}Expand description
Structured metadata for SetUserAgentOverride.
Fields§
§brands: Vec<UserAgentBrand>§full_version_list: Vec<UserAgentBrand>§full_version: Option<String>§platform: Option<String>§platform_version: Option<String>§architecture: Option<String>§model: Option<String>§mobile: Option<bool>§bitness: Option<String>§wow64: Option<bool>§form_factors: Vec<String>Implementations§
Source§impl UserAgentMetadataOverride
impl UserAgentMetadataOverride
pub fn with_brand(self, brand: UserAgentBrand) -> Self
pub fn with_full_version_entry(self, brand: UserAgentBrand) -> Self
pub fn with_full_version<T: Into<String>>(self, version: T) -> Self
pub fn with_platform<T: Into<String>>(self, platform: T) -> Self
pub fn with_platform_version<T: Into<String>>(self, version: T) -> Self
pub fn with_architecture<T: Into<String>>(self, arch: T) -> Self
pub fn with_model<T: Into<String>>(self, model: T) -> Self
pub fn with_mobile(self, mobile: bool) -> Self
pub fn with_bitness<T: Into<String>>(self, bitness: T) -> Self
pub fn with_wow64(self, wow64: bool) -> Self
pub fn with_form_factor<T: Into<String>>(self, factor: T) -> Self
Trait Implementations§
Source§impl Clone for UserAgentMetadataOverride
impl Clone for UserAgentMetadataOverride
Source§fn clone(&self) -> UserAgentMetadataOverride
fn clone(&self) -> UserAgentMetadataOverride
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 UserAgentMetadataOverride
impl Debug for UserAgentMetadataOverride
Source§impl Default for UserAgentMetadataOverride
impl Default for UserAgentMetadataOverride
Source§fn default() -> UserAgentMetadataOverride
fn default() -> UserAgentMetadataOverride
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UserAgentMetadataOverride
impl RefUnwindSafe for UserAgentMetadataOverride
impl Send for UserAgentMetadataOverride
impl Sync for UserAgentMetadataOverride
impl Unpin for UserAgentMetadataOverride
impl UnwindSafe for UserAgentMetadataOverride
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