#[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 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.impl StructuralPartialEq for GetBucketsAggregationOutput
Auto Trait Implementations§
impl Freeze for GetBucketsAggregationOutput
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more