pub struct PreviewHits {
pub total: u64,
pub sample: Vec<Value>,
}Fields§
§total: u64§sample: Vec<Value>One entry for each returned document: {"_id": ..., "_source": {...}}.
Contains the matching alert document, not a projected subset.
Trait Implementations§
Source§impl Clone for PreviewHits
impl Clone for PreviewHits
Source§fn clone(&self) -> PreviewHits
fn clone(&self) -> PreviewHits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreviewHits
impl Debug for PreviewHits
Source§impl Default for PreviewHits
impl Default for PreviewHits
Source§fn default() -> PreviewHits
fn default() -> PreviewHits
Returns the “default value” for a type. Read more
Source§impl PartialEq for PreviewHits
impl PartialEq for PreviewHits
impl StructuralPartialEq for PreviewHits
Auto Trait Implementations§
impl Freeze for PreviewHits
impl RefUnwindSafe for PreviewHits
impl Send for PreviewHits
impl Sync for PreviewHits
impl Unpin for PreviewHits
impl UnsafeUnpin for PreviewHits
impl UnwindSafe for PreviewHits
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