pub struct UserAgent {
pub raw: String,
pub browser: BrowserFamily,
pub os: OsFamily,
pub version: Option<String>,
pub is_mobile: bool,
pub is_bot: bool,
}Expand description
Parsed result of a User-Agent string.
Fields§
§raw: String§browser: BrowserFamily§os: OsFamily§version: Option<String>§is_mobile: bool§is_bot: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for UserAgent
impl RefUnwindSafe for UserAgent
impl Send for UserAgent
impl Sync for UserAgent
impl Unpin for UserAgent
impl UnsafeUnpin for UserAgent
impl UnwindSafe for UserAgent
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