pub struct SearchOptions {
pub limit: usize,
pub include_generated: bool,
pub include_memory: bool,
}Expand description
How to search.
Fields§
§limit: usizeMaximum hits per channel, where 0 is unlimited (window’s rule,
applied per channel). Each channel is ranked and windowed independently,
so opting in to another one never displaces a graph hit, and never
silently returns fewer of them — and 0 is “all of each channel asked
for”, not “all of them merged and then cut”.
include_generated: boolFold in the generated channel. Off by default (see
SearchOptions::default).
include_memory: boolFold in the memory channel. Off by default, for the same reason: what an agent remembers is unreviewed, unredacted and accumulated, so it is something a caller asks for rather than something that arrives.
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 moreimpl Copy for SearchOptions
Source§impl Debug for SearchOptions
impl Debug for SearchOptions
Source§impl Default for SearchOptions
impl Default for SearchOptions
impl Eq for SearchOptions
Source§impl PartialEq for SearchOptions
impl PartialEq for SearchOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.