pub struct HistogramQueryResult {
pub histogram: Option<HashMap<String, i64>>,
pub histogram_query: Option<String>,
}Expand description
Histogram result that matches HistogramQuery specified in searches.
This type is not used in any activity, and only used as part of another schema.
Fields§
§histogram: Option<HashMap<String, i64>>A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value. The key format is: * (for string histogram) string values stored in the field. * (for named numeric bucket) name specified in bucket() function, like for bucket(0, MAX, "non-negative"), the key will be non-negative. * (for anonymous numeric bucket) range formatted as -, for example, 0-1000, MIN-0, and 0-MAX.
histogram_query: Option<String>Requested histogram expression.
Trait Implementations§
Source§impl Clone for HistogramQueryResult
impl Clone for HistogramQueryResult
Source§fn clone(&self) -> HistogramQueryResult
fn clone(&self) -> HistogramQueryResult
Returns a duplicate 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 HistogramQueryResult
impl Debug for HistogramQueryResult
Source§impl Default for HistogramQueryResult
impl Default for HistogramQueryResult
Source§fn default() -> HistogramQueryResult
fn default() -> HistogramQueryResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HistogramQueryResult
impl<'de> Deserialize<'de> for HistogramQueryResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for HistogramQueryResult
impl Serialize for HistogramQueryResult
impl Part for HistogramQueryResult
Auto Trait Implementations§
impl Freeze for HistogramQueryResult
impl RefUnwindSafe for HistogramQueryResult
impl Send for HistogramQueryResult
impl Sync for HistogramQueryResult
impl Unpin for HistogramQueryResult
impl UnwindSafe for HistogramQueryResult
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