pub struct AggregationResponseBucket { /* private fields */ }
Implementations§
Source§impl AggregationResponseBucket
impl AggregationResponseBucket
pub fn new(value: Value) -> AggregationResponseBucket
pub fn value(&self) -> Value
pub fn hits(&self) -> Option<Hits<Value>>
pub fn key(&self) -> Option<String>
pub fn keys(&self) -> Option<Vec<String>>
pub fn doc_count(&self) -> Option<u64>
pub fn sub_aggregation<T: Into<String>>( &self, key: T, ) -> Option<AggregationResponseParser>
Trait Implementations§
Source§impl Clone for AggregationResponseBucket
impl Clone for AggregationResponseBucket
Source§fn clone(&self) -> AggregationResponseBucket
fn clone(&self) -> AggregationResponseBucket
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 AggregationResponseBucket
impl Debug for AggregationResponseBucket
Source§impl Default for AggregationResponseBucket
impl Default for AggregationResponseBucket
Source§fn default() -> AggregationResponseBucket
fn default() -> AggregationResponseBucket
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AggregationResponseBucket
impl RefUnwindSafe for AggregationResponseBucket
impl Send for AggregationResponseBucket
impl Sync for AggregationResponseBucket
impl Unpin for AggregationResponseBucket
impl UnwindSafe for AggregationResponseBucket
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