pub struct UserAgentMetadataBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> UserAgentMetadataBuilder<'a>
impl<'a> UserAgentMetadataBuilder<'a>
Sourcepub fn brands(self, brands: Vec<UserAgentBrandVersion<'a>>) -> Self
pub fn brands(self, brands: Vec<UserAgentBrandVersion<'a>>) -> Self
Brands appearing in Sec-CH-UA.
Sourcepub fn fullVersionList(
self,
fullVersionList: Vec<UserAgentBrandVersion<'a>>,
) -> Self
pub fn fullVersionList( self, fullVersionList: Vec<UserAgentBrandVersion<'a>>, ) -> Self
Brands appearing in Sec-CH-UA-Full-Version-List.
pub fn fullVersion(self, fullVersion: impl Into<Cow<'a, str>>) -> Self
pub fn bitness(self, bitness: impl Into<Cow<'a, str>>) -> Self
pub fn wow64(self, wow64: bool) -> Self
Sourcepub fn formFactors(self, formFactors: Vec<Cow<'a, str>>) -> Self
pub fn formFactors(self, formFactors: Vec<Cow<'a, str>>) -> Self
Used to specify User Agent form-factor values. See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors
pub fn build(self) -> UserAgentMetadata<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserAgentMetadataBuilder<'a>
impl<'a> RefUnwindSafe for UserAgentMetadataBuilder<'a>
impl<'a> Send for UserAgentMetadataBuilder<'a>
impl<'a> Sync for UserAgentMetadataBuilder<'a>
impl<'a> Unpin for UserAgentMetadataBuilder<'a>
impl<'a> UnsafeUnpin for UserAgentMetadataBuilder<'a>
impl<'a> UnwindSafe for UserAgentMetadataBuilder<'a>
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