pub struct SearchOptions {
pub limit: usize,
pub min_similarity: f32,
pub roles: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
}Expand description
Options for search operations.
Fields§
§limit: usizeMaximum results to return.
min_similarity: f32Minimum similarity threshold.
roles: Option<Vec<String>>Filter by semantic roles.
Filter by tags.
Implementations§
Source§impl SearchOptions
impl SearchOptions
pub fn new() -> Self
pub fn with_limit(self, limit: usize) -> Self
pub fn with_min_similarity(self, threshold: f32) -> Self
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 · 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
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin 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