pub struct AnalyticsQueryResult {
pub name: String,
pub time_range: TimeRange,
pub result: Vec<Value>,
}
Fields§
§name: String
This is the unique key for the query.
time_range: TimeRange
This is the time range for the query.
result: Vec<Value>
This is the result of the query, a list of unique groups with result of their aggregations. Example: "result": [ { "date": "2023-01-01", "assistantId": "123", "endedReason": "customer-ended-call", "sumDuration": 120, "avgCost": 10.5 }, { "date": "2023-01-02", "assistantId": "123", "endedReason": "customer-did-not-give-microphone-permission", "sumDuration": 0, "avgCost": 0 }, // Additional results ]
Implementations§
Trait Implementations§
Source§impl Clone for AnalyticsQueryResult
impl Clone for AnalyticsQueryResult
Source§fn clone(&self) -> AnalyticsQueryResult
fn clone(&self) -> AnalyticsQueryResult
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AnalyticsQueryResult
impl Debug for AnalyticsQueryResult
Source§impl Default for AnalyticsQueryResult
impl Default for AnalyticsQueryResult
Source§fn default() -> AnalyticsQueryResult
fn default() -> AnalyticsQueryResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnalyticsQueryResult
impl<'de> Deserialize<'de> for AnalyticsQueryResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnalyticsQueryResult
impl PartialEq for AnalyticsQueryResult
Source§impl Serialize for AnalyticsQueryResult
impl Serialize for AnalyticsQueryResult
impl StructuralPartialEq for AnalyticsQueryResult
Auto Trait Implementations§
impl Freeze for AnalyticsQueryResult
impl RefUnwindSafe for AnalyticsQueryResult
impl Send for AnalyticsQueryResult
impl Sync for AnalyticsQueryResult
impl Unpin for AnalyticsQueryResult
impl UnwindSafe for AnalyticsQueryResult
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