pub struct SearchOptions {
pub collections: Option<Vec<String>>,
pub limit: Option<usize>,
pub filter: Option<Value>,
}Expand description
Options used when performing a search.
Fields§
§collections: Option<Vec<String>>Limit search to these collection or stream names.
limit: Option<usize>Maximum number of hits to return.
filter: Option<Value>Metadata filters to match custom fields in the JSON body.
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 SearchOptions
impl Debug for SearchOptions
Source§impl Default for SearchOptions
impl Default for SearchOptions
Source§fn default() -> SearchOptions
fn default() -> SearchOptions
Returns the “default value” for a type. Read more
impl Eq for SearchOptions
Source§impl PartialEq for SearchOptions
impl PartialEq for SearchOptions
Source§fn eq(&self, other: &SearchOptions) -> bool
fn eq(&self, other: &SearchOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchOptions
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnsafeUnpin for SearchOptions
impl UnwindSafe for SearchOptions
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