pub struct HeaderProfile {
pub user_agent: String,
pub headers: Vec<(String, String)>,
}Expand description
A browser user agent and its ordered companion HTTP headers.
Fields§
§user_agent: StringBrowser user-agent value.
headers: Vec<(String, String)>Ordered header name and value pairs associated with the user agent.
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<'de> Deserialize<'de> for HeaderProfile
impl<'de> Deserialize<'de> for HeaderProfile
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
impl Eq for HeaderProfile
Source§impl PartialEq for HeaderProfile
impl PartialEq for HeaderProfile
Source§impl Serialize for HeaderProfile
impl Serialize 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