pub struct StatisticDescription {
pub link: Option<IdOrVanity>,
pub stat_type: Option<StatisticType>,
pub data: Option<StatisticData>,
pub time: Option<StatisticTime>,
}
Expand description
A description of one or more Statistic
s, where some fields may be
omitted so that they act as a wildcard
This struct is intended for use with the links store and RPC API, and can
describe multiple statistics by specifying only some of a statistic’s
fields. When a field is omitted, all values for it are accepted. Therefore,
for example to get all statistics for a given link regardless of type, data,
or time, only the link
field of the StatisticDescription
would be
Some(...)
, while all others are None
. If all fields are None
, then all
statistics for all links are matched.
Fields§
§link: Option<IdOrVanity>
The ID or vanity path of the link that this statistic is about
stat_type: Option<StatisticType>
The type of this statistic, see StatisticType
data: Option<StatisticData>
The data for this statistic
time: Option<StatisticTime>
The approximate time this statistic was collected at
Implementations§
Trait Implementations§
Source§impl Clone for StatisticDescription
impl Clone for StatisticDescription
Source§fn clone(&self) -> StatisticDescription
fn clone(&self) -> StatisticDescription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StatisticDescription
impl Debug for StatisticDescription
Source§impl Default for StatisticDescription
impl Default for StatisticDescription
Source§fn default() -> StatisticDescription
fn default() -> StatisticDescription
Source§impl<'de> Deserialize<'de> for StatisticDescription
impl<'de> Deserialize<'de> for StatisticDescription
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 Hash for StatisticDescription
impl Hash for StatisticDescription
Source§impl PartialEq for StatisticDescription
impl PartialEq for StatisticDescription
Source§impl Serialize for StatisticDescription
impl Serialize for StatisticDescription
impl Eq for StatisticDescription
impl StructuralPartialEq for StatisticDescription
Auto Trait Implementations§
impl Freeze for StatisticDescription
impl RefUnwindSafe for StatisticDescription
impl Send for StatisticDescription
impl Sync for StatisticDescription
impl Unpin for StatisticDescription
impl UnwindSafe for StatisticDescription
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