pub struct UserAgentMetadataBuilder { /* private fields */ }Available on crate features
Emulation and DOM and Page and Runtime and experimental only.Implementations§
Source§impl UserAgentMetadataBuilder
impl UserAgentMetadataBuilder
pub fn brands(&mut self, v: Vec<JsonValue>) -> &mut Self
pub fn full_version(&mut self, v: String) -> &mut Self
pub fn platform(&mut self, v: String) -> &mut Self
pub fn platform_version(&mut self, v: String) -> &mut Self
pub fn architecture(&mut self, v: String) -> &mut Self
pub fn model(&mut self, v: String) -> &mut Self
pub fn mobile(&mut self, v: bool) -> &mut Self
pub fn build(&mut self) -> Result<UserAgentMetadata, &'static str>
Trait Implementations§
Source§impl Clone for UserAgentMetadataBuilder
impl Clone for UserAgentMetadataBuilder
Source§fn clone(&self) -> UserAgentMetadataBuilder
fn clone(&self) -> UserAgentMetadataBuilder
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 UserAgentMetadataBuilder
impl Debug for UserAgentMetadataBuilder
Auto Trait Implementations§
impl Freeze for UserAgentMetadataBuilder
impl RefUnwindSafe for UserAgentMetadataBuilder
impl Send for UserAgentMetadataBuilder
impl Sync for UserAgentMetadataBuilder
impl Unpin for UserAgentMetadataBuilder
impl UnwindSafe for UserAgentMetadataBuilder
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