pub struct AnalyticsResult {
pub result: Value,
pub metadata: ResultMetadata,
}Expand description
The result returned to the dashboard after executing an analytics query.
result is the computed metric value (a number, or null if no data).
metadata contains performance information shown in the dashboard UI.
#[derive(Serialize)] lets this struct be converted to JSON automatically.
Fields§
§result: ValueThe computed metric value. For COUNT: a JSON integer (e.g. 42). For SUM/AVG/MIN/MAX: a JSON float (e.g. 3.14), or null if no documents matched.
metadata: ResultMetadataPerformance metadata — how long the query took and how many rows were scanned.
Trait Implementations§
Source§impl Debug for AnalyticsResult
impl Debug for AnalyticsResult
Auto Trait Implementations§
impl Freeze for AnalyticsResult
impl RefUnwindSafe for AnalyticsResult
impl Send for AnalyticsResult
impl Sync for AnalyticsResult
impl Unpin for AnalyticsResult
impl UnsafeUnpin for AnalyticsResult
impl UnwindSafe for AnalyticsResult
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
Mutably borrows from an owned value. Read more