pub struct UserAgentProfile {
pub user_agent: Arc<String>,
pub headers: DashMap<String, String>,
}Expand description
Represents a User-Agent profile, including the User-Agent string and other associated headers.
Fields§
§user_agent: Arc<String>The User-Agent string.
headers: DashMap<String, String>Additional headers that should be sent with this User-Agent to mimic a real browser.
Trait Implementations§
Source§impl Clone for UserAgentProfile
impl Clone for UserAgentProfile
Source§fn clone(&self) -> UserAgentProfile
fn clone(&self) -> UserAgentProfile
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 UserAgentProfile
impl Debug for UserAgentProfile
Source§impl<'de> Deserialize<'de> for UserAgentProfile
impl<'de> Deserialize<'de> for UserAgentProfile
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
Source§impl From<&str> for UserAgentProfile
impl From<&str> for UserAgentProfile
Source§impl From<String> for UserAgentProfile
impl From<String> for UserAgentProfile
Auto Trait Implementations§
impl Freeze for UserAgentProfile
impl !RefUnwindSafe for UserAgentProfile
impl Send for UserAgentProfile
impl Sync for UserAgentProfile
impl Unpin for UserAgentProfile
impl UnwindSafe for UserAgentProfile
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