pub enum CompositeSource {
Terms {
name: String,
terms: TermsCompositeSource,
},
Histogram {
name: String,
histogram: HistogramCompositeSource,
},
DateHistogram {
name: String,
date_histogram: DateHistogramCompositeSource,
},
}
Expand description
Represents different types of sources for a composite aggregation.
Variants§
Terms
Terms source for the composite aggregation.
Fields
§
terms: TermsCompositeSource
The terms composite source.
Histogram
Histogram source for the composite aggregation.
Fields
§
histogram: HistogramCompositeSource
The histogram composite source.
DateHistogram
Date histogram source for the composite aggregation.
Fields
§
date_histogram: DateHistogramCompositeSource
The date histogram composite source.
Implementations§
Source§impl CompositeSource
impl CompositeSource
Sourcepub fn terms(name: &str, field: &str) -> CompositeSource
pub fn terms(name: &str, field: &str) -> CompositeSource
Creates a terms source for the composite aggregation.
name
- The unique identifier for the terms source.field
- The field to perform the terms aggregation on.
Sourcepub fn histogram(name: &str, field: &str, interval: f64) -> CompositeSource
pub fn histogram(name: &str, field: &str, interval: f64) -> CompositeSource
Creates a histogram source for the composite aggregation.
name
- The unique identifier for the histogram source.field
- The field to perform the histogram aggregation on.interval
- The interval for the histogram buckets.
Sourcepub fn date_histogram(
name: &str,
field: &str,
calendar_interval: &str,
) -> CompositeSource
pub fn date_histogram( name: &str, field: &str, calendar_interval: &str, ) -> CompositeSource
Creates a date histogram source for the composite aggregation.
name
- The unique identifier for the date histogram source.field
- The field to perform the date histogram aggregation on.calendar_interval
- The calendar interval for the date histogram buckets.
Trait Implementations§
Source§impl Clone for CompositeSource
impl Clone for CompositeSource
Source§fn clone(&self) -> CompositeSource
fn clone(&self) -> CompositeSource
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 CompositeSource
impl Debug for CompositeSource
Source§impl PartialEq for CompositeSource
impl PartialEq for CompositeSource
Source§impl Serialize for CompositeSource
impl Serialize for CompositeSource
impl StructuralPartialEq for CompositeSource
Auto Trait Implementations§
impl Freeze for CompositeSource
impl RefUnwindSafe for CompositeSource
impl Send for CompositeSource
impl Sync for CompositeSource
impl Unpin for CompositeSource
impl UnwindSafe for CompositeSource
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