#[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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total_count: i32The 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.
sourcepub fn buckets(&self) -> &[Bucket]
pub fn buckets(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .buckets.is_none().
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetBucketsAggregationOutput
impl Debug for GetBucketsAggregationOutput
source§impl PartialEq for GetBucketsAggregationOutput
impl PartialEq for GetBucketsAggregationOutput
source§fn eq(&self, other: &GetBucketsAggregationOutput) -> bool
fn eq(&self, other: &GetBucketsAggregationOutput) -> bool
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>
None if the service could not be reached.