#[non_exhaustive]pub enum StatisticType {
Request,
HostRequest,
SniRequest,
StatusCode,
HttpVersion,
TlsVersion,
TlsCipherSuite,
UserAgent,
UserAgentMobile,
UserAgentPlatform,
}
Expand description
The type of a links statistic
Each of the variants of this enum is one type of statistic, that along with
the statistic’s data and link comprises one full Statistic
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Request
HostRequest
Number of requests to the specified host/domain
§Data
The value of the HTTP Host
request header or the :authority
pseudo-header field, e.g. example.com
or 10.0.0.25:8000
SniRequest
Number of requests with the specified SNI
§Data
The value of the TLS SNI, e.g. example.com
or www.links.example
StatusCode
Number of requests that resulted in the given HTTP status code being returned
§Data
The HTTP status code number, e.g. 404
or 308
HttpVersion
Number of requests that used the given HTTP version
§Data
The HTTP protocol version used for the request, e.g. HTTP/1.0
or
HTTP/2
TlsVersion
Number of requests that used the given TLS version
§Data
The TLS version (see ProtocolVersion
) used for the request, e.g.
TLSv1.3
or TLSv1.2
TlsCipherSuite
Number of requests that used the provided TLS cipher suite
§Data
The TLS cipher suite (see CipherSuite
) used for the request, e.g.
TLS13_AES_256_GCM_SHA384
or TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
UserAgent
Number of requests by the provided user agent/browser
§Data
The content of the Sec-CH-UA
HTTP header, or in case that
header is not available, the User-Agent
header
As recommended by the appropriate standard, the data for this statistic is the entire value of the header. The header is not parsed into its individual components, instead it is simply copied verbatim.
UserAgentMobile
Number of requests by a user agent based on preference for a “mobile experience”
§Data
The content of the Sec-CH-UA-Mobile
HTTP header, e.g. ?0
(for false/no) or ?1
(for true/yes)
UserAgentPlatform
Number of requests by a user agent on the specified platform/operating system
§Data
The content of the Sec-CH-UA-Platform
HTTP header, e.g.
Android
or Windows
Trait Implementations§
Source§impl Clone for StatisticType
impl Clone for StatisticType
Source§fn clone(&self) -> StatisticType
fn clone(&self) -> StatisticType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StatisticType
impl Debug for StatisticType
Source§impl<'de> Deserialize<'de> for StatisticType
impl<'de> Deserialize<'de> for StatisticType
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>,
Source§impl Display for StatisticType
impl Display for StatisticType
Source§impl FromStr for StatisticType
impl FromStr for StatisticType
Source§impl Hash for StatisticType
impl Hash for StatisticType
Source§impl PartialEq for StatisticType
impl PartialEq for StatisticType
Source§impl Serialize for StatisticType
impl Serialize for StatisticType
Source§impl TryFrom<&str> for StatisticType
impl TryFrom<&str> for StatisticType
impl Copy for StatisticType
impl Eq for StatisticType
impl StructuralPartialEq for StatisticType
Auto Trait Implementations§
impl Freeze for StatisticType
impl RefUnwindSafe for StatisticType
impl Send for StatisticType
impl Sync for StatisticType
impl Unpin for StatisticType
impl UnwindSafe for StatisticType
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request