pub struct HeaderProfile {
pub user_agent: String,
pub sec_ch_ua: String,
pub sec_ch_ua_platform: String,
pub include_priority_header: bool,
pub zstd_encoding: bool,
}Expand description
Chrome-specific HTTP header values and behaviors.
Fields§
§user_agent: StringFull User-Agent string.
sec_ch_ua: Stringsec-ch-ua Client Hint string.
sec_ch_ua_platform: Stringsec-ch-ua-platform Client Hint string.
include_priority_header: boolWhether to include the priority header in the request.
zstd_encoding: boolWhether to include zstd in accept-encoding.
Trait Implementations§
Source§impl Clone for HeaderProfile
impl Clone for HeaderProfile
Source§fn clone(&self) -> HeaderProfile
fn clone(&self) -> HeaderProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeaderProfile
impl Debug for HeaderProfile
Source§impl PartialEq for HeaderProfile
impl PartialEq for HeaderProfile
Source§fn eq(&self, other: &HeaderProfile) -> bool
fn eq(&self, other: &HeaderProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HeaderProfile
impl StructuralPartialEq for HeaderProfile
Auto Trait Implementations§
impl Freeze for HeaderProfile
impl RefUnwindSafe for HeaderProfile
impl Send for HeaderProfile
impl Sync for HeaderProfile
impl Unpin for HeaderProfile
impl UnsafeUnpin for HeaderProfile
impl UnwindSafe for HeaderProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.