#[non_exhaustive]pub struct GetBucketsAggregationOutput {
pub total_count: i32,
pub buckets: Option<Vec<Bucket>>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.total_count: i32
The total number of things that fit the query string criteria.
buckets: Option<Vec<Bucket>>
The main part of the response with a list of buckets. Each bucket contains a keyValue
and a count
.
keyValue
: The aggregation field value counted for the particular bucket.
count
: The number of documents that have that value.
Implementations§
source§impl GetBucketsAggregationOutput
impl GetBucketsAggregationOutput
sourcepub fn total_count(&self) -> i32
pub fn total_count(&self) -> i32
The total number of things that fit the query string criteria.
source§impl GetBucketsAggregationOutput
impl GetBucketsAggregationOutput
sourcepub fn builder() -> GetBucketsAggregationOutputBuilder
pub fn builder() -> GetBucketsAggregationOutputBuilder
Creates a new builder-style object to manufacture GetBucketsAggregationOutput
.
Trait Implementations§
source§impl Clone for GetBucketsAggregationOutput
impl Clone for GetBucketsAggregationOutput
source§fn clone(&self) -> GetBucketsAggregationOutput
fn clone(&self) -> GetBucketsAggregationOutput
Returns a copy 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 GetBucketsAggregationOutput
impl Debug for GetBucketsAggregationOutput
source§impl PartialEq<GetBucketsAggregationOutput> for GetBucketsAggregationOutput
impl PartialEq<GetBucketsAggregationOutput> for GetBucketsAggregationOutput
source§fn eq(&self, other: &GetBucketsAggregationOutput) -> bool
fn eq(&self, other: &GetBucketsAggregationOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetBucketsAggregationOutput
impl RequestId for GetBucketsAggregationOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for GetBucketsAggregationOutput
Auto Trait Implementations§
impl RefUnwindSafe for GetBucketsAggregationOutput
impl Send for GetBucketsAggregationOutput
impl Sync for GetBucketsAggregationOutput
impl Unpin for GetBucketsAggregationOutput
impl UnwindSafe for GetBucketsAggregationOutput
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