Struct primitives::sentry::AnalyticsResponse
source · pub struct AnalyticsResponse {
pub analytics: Vec<FetchedAnalytics>,
}
Expand description
Response returned when getting Analytics which returns the FetchedAnalytics
.
Examples
use primitives::sentry::AnalyticsResponse;
use serde_json::{from_value, json};
fn main() {
let json = json!({
"analytics": [{
"time": 1659592800,
"value": "3",
"segment": null
},
{
"time": 1659592800,
"value": "10000000000",
"segment": null
},
{
"time": 1659592800,
"value": "100000000",
"segment": "country"
}]
});
assert!(from_value::<AnalyticsResponse>(json).is_ok());
}
Fields
analytics: Vec<FetchedAnalytics>
Trait Implementations
sourceimpl Clone for AnalyticsResponse
impl Clone for AnalyticsResponse
sourcefn clone(&self) -> AnalyticsResponse
fn clone(&self) -> AnalyticsResponse
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 AnalyticsResponse
impl Debug for AnalyticsResponse
sourceimpl<'de> Deserialize<'de> for AnalyticsResponse
impl<'de> Deserialize<'de> for AnalyticsResponse
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<AnalyticsResponse> for AnalyticsResponse
impl PartialEq<AnalyticsResponse> for AnalyticsResponse
sourcefn eq(&self, other: &AnalyticsResponse) -> bool
fn eq(&self, other: &AnalyticsResponse) -> bool
sourceimpl Serialize for AnalyticsResponse
impl Serialize for AnalyticsResponse
impl Eq for AnalyticsResponse
impl StructuralEq for AnalyticsResponse
impl StructuralPartialEq for AnalyticsResponse
Auto Trait Implementations
impl RefUnwindSafe for AnalyticsResponse
impl Send for AnalyticsResponse
impl Sync for AnalyticsResponse
impl Unpin for AnalyticsResponse
impl UnwindSafe for AnalyticsResponse
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