pub struct AggregationResponse {
pub status: ApiStatus,
pub data: Vec<AggregationItem>,
pub stats: Option<Box<AggregationResponseStats>>,
}Expand description
AggregationResponse : The API response returns the aggregated data along with simple stats
Fields§
§status: ApiStatus§data: Vec<AggregationItem>§stats: Option<Box<AggregationResponseStats>>Implementations§
Source§impl AggregationResponse
impl AggregationResponse
Sourcepub fn new(status: ApiStatus, data: Vec<AggregationItem>) -> AggregationResponse
pub fn new(status: ApiStatus, data: Vec<AggregationItem>) -> AggregationResponse
The API response returns the aggregated data along with simple stats
Trait Implementations§
Source§impl Clone for AggregationResponse
impl Clone for AggregationResponse
Source§fn clone(&self) -> AggregationResponse
fn clone(&self) -> AggregationResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AggregationResponse
impl Debug for AggregationResponse
Source§impl Default for AggregationResponse
impl Default for AggregationResponse
Source§fn default() -> AggregationResponse
fn default() -> AggregationResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AggregationResponse
impl<'de> Deserialize<'de> for AggregationResponse
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 AggregationResponse
impl PartialEq for AggregationResponse
Source§impl Serialize for AggregationResponse
impl Serialize for AggregationResponse
impl StructuralPartialEq for AggregationResponse
Auto Trait Implementations§
impl Freeze for AggregationResponse
impl RefUnwindSafe for AggregationResponse
impl Send for AggregationResponse
impl Sync for AggregationResponse
impl Unpin for AggregationResponse
impl UnwindSafe for AggregationResponse
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