pub struct UserAgentInfo {
pub category: String,
pub browser_name: String,
pub browser_version: String,
pub metrics_browser: String,
pub metrics_os: String,
pub os_version: String,
pub os: String,
/* private fields */
}Fields§
§category: String§browser_name: String§browser_version: String§metrics_browser: String§metrics_os: String§os_version: String§os: StringTrait Implementations§
Source§impl Clone for UserAgentInfo
impl Clone for UserAgentInfo
Source§fn clone(&self) -> UserAgentInfo
fn clone(&self) -> UserAgentInfo
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 UserAgentInfo
impl Debug for UserAgentInfo
Source§impl Default for UserAgentInfo
impl Default for UserAgentInfo
Source§fn default() -> UserAgentInfo
fn default() -> UserAgentInfo
Returns the “default value” for a type. Read more
Source§impl From<&HttpRequest> for UserAgentInfo
impl From<&HttpRequest> for UserAgentInfo
Source§fn from(req: &HttpRequest) -> UserAgentInfo
fn from(req: &HttpRequest) -> UserAgentInfo
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserAgentInfo
impl RefUnwindSafe for UserAgentInfo
impl Send for UserAgentInfo
impl Sync for UserAgentInfo
impl Unpin for UserAgentInfo
impl UnwindSafe for UserAgentInfo
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more