Enum primitives::sentry::FetchedMetric
source · pub enum FetchedMetric {
Count(u32),
Paid(UnifiedNum),
}
Expand description
The value of the requested analytics crate::analytics::Metric
.
Variants
Count(u32)
Paid(UnifiedNum)
Implementations
sourceimpl FetchedMetric
impl FetchedMetric
sourcepub fn get_count(&self) -> Option<u32>
pub fn get_count(&self) -> Option<u32>
Returns the count if it’s a FetchedMetric::Count
or None
otherwise.
sourcepub fn get_paid(&self) -> Option<UnifiedNum>
pub fn get_paid(&self) -> Option<UnifiedNum>
Returns the paid amount if it’s a FetchedMetric::Paid
or None
otherwise.
Trait Implementations
sourceimpl Clone for FetchedMetric
impl Clone for FetchedMetric
sourcefn clone(&self) -> FetchedMetric
fn clone(&self) -> FetchedMetric
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FetchedMetric
impl Debug for FetchedMetric
sourceimpl<'de> Deserialize<'de> for FetchedMetric
impl<'de> Deserialize<'de> for FetchedMetric
sourcefn 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
sourceimpl PartialEq<FetchedMetric> for FetchedMetric
impl PartialEq<FetchedMetric> for FetchedMetric
sourcefn eq(&self, other: &FetchedMetric) -> bool
fn eq(&self, other: &FetchedMetric) -> bool
sourceimpl Serialize for FetchedMetric
impl Serialize for FetchedMetric
impl Copy for FetchedMetric
impl Eq for FetchedMetric
impl StructuralEq for FetchedMetric
impl StructuralPartialEq for FetchedMetric
Auto Trait Implementations
impl RefUnwindSafe for FetchedMetric
impl Send for FetchedMetric
impl Sync for FetchedMetric
impl Unpin for FetchedMetric
impl UnwindSafe for FetchedMetric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more