pub struct UserAgentMetadata { /* private fields */ }Available on crate features
Emulation and DOM and Page and Runtime and experimental only.Expand description
Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.
Implementations§
Source§impl UserAgentMetadata
impl UserAgentMetadata
pub fn builder() -> UserAgentMetadataBuilder
pub fn brands(&self) -> Option<&Vec<JsonValue>>
pub fn full_version(&self) -> Option<&String>
pub fn platform(&self) -> &str
pub fn platform_version(&self) -> &str
pub fn architecture(&self) -> &str
pub fn model(&self) -> &str
pub fn mobile(&self) -> bool
Trait Implementations§
Source§impl Clone for UserAgentMetadata
impl Clone for UserAgentMetadata
Source§fn clone(&self) -> UserAgentMetadata
fn clone(&self) -> UserAgentMetadata
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 UserAgentMetadata
impl Debug for UserAgentMetadata
Source§impl<'de> Deserialize<'de> for UserAgentMetadata
impl<'de> Deserialize<'de> for UserAgentMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UserAgentMetadata
impl RefUnwindSafe for UserAgentMetadata
impl Send for UserAgentMetadata
impl Sync for UserAgentMetadata
impl Unpin for UserAgentMetadata
impl UnwindSafe for UserAgentMetadata
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