pub struct QueryOptions<'a> {
pub limit: Option<usize>,
pub cursor: Option<&'a str>,
pub provider: Option<&'a dyn EmbeddingProvider>,
}Expand description
query’s options.
Fields§
§limit: Option<usize>The page cap (default 50).
cursor: Option<&'a str>Resume after a truncated page’s cursor.
provider: Option<&'a dyn EmbeddingProvider>The provider behind semantic(...); None → semantic_unavailable
when the query names a phrase.
Trait Implementations§
Source§impl<'a> Clone for QueryOptions<'a>
impl<'a> Clone for QueryOptions<'a>
impl<'a> Copy for QueryOptions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for QueryOptions<'a>
impl<'a> !Send for QueryOptions<'a>
impl<'a> !Sync for QueryOptions<'a>
impl<'a> !UnwindSafe for QueryOptions<'a>
impl<'a> Freeze for QueryOptions<'a>
impl<'a> Unpin for QueryOptions<'a>
impl<'a> UnsafeUnpin for QueryOptions<'a>
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