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§impl Debug for AggregationResponse
impl Debug for AggregationResponse
Source§impl Default for AggregationResponse
impl Default for AggregationResponse
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 Forget for AggregationResponse
impl Freeze for AggregationResponsewhere
*const u8 is !null: Freeze,
PhantomData<AggregationItem>: Freeze,
*const AggregationResponseStats is !null: Freeze,
PhantomData<AggregationResponseStats>: Freeze,
impl Move for AggregationResponse
impl RefUnwindSafe for AggregationResponse
impl Send for AggregationResponse
impl Sync for AggregationResponse
impl Unpin for AggregationResponse
impl UnsafeUnpin for AggregationResponsewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<AggregationItem>: UnsafeUnpin,
*const AggregationResponseStats is !null: UnsafeUnpin,
PhantomData<AggregationResponseStats>: UnsafeUnpin,
impl UnwindSafe for AggregationResponsewhere
RawVecInner: UnwindSafe,
HashMap<String, String>: UnwindSafe,
BoxRaw<AggregationResponseStats>: UnwindSafe,
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