pub struct GraphSearchRequest {
pub query: String,
pub source_scope: Option<String>,
pub graph_version: GraphVersion,
pub limit: usize,
pub disabled_retriever_sources: Vec<RetrieverSource>,
}Expand description
Bounded graph search request against an explicit graph snapshot.
Fields§
§query: String§source_scope: Option<String>§graph_version: GraphVersion§limit: usize§disabled_retriever_sources: Vec<RetrieverSource>Implementations§
Source§impl GraphSearchRequest
impl GraphSearchRequest
Sourcepub fn allows_retriever_source(&self, source: RetrieverSource) -> bool
pub fn allows_retriever_source(&self, source: RetrieverSource) -> bool
Returns whether storage may execute a retriever family for this request.
Sourcepub fn max_trace_items(&self) -> usize
pub fn max_trace_items(&self) -> usize
Maximum provenance items exposed for this bounded search.
Trait Implementations§
Source§impl Clone for GraphSearchRequest
impl Clone for GraphSearchRequest
Source§fn clone(&self) -> GraphSearchRequest
fn clone(&self) -> GraphSearchRequest
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 GraphSearchRequest
impl Debug for GraphSearchRequest
impl Eq for GraphSearchRequest
Source§impl PartialEq for GraphSearchRequest
impl PartialEq for GraphSearchRequest
impl StructuralPartialEq for GraphSearchRequest
Auto Trait Implementations§
impl Freeze for GraphSearchRequest
impl RefUnwindSafe for GraphSearchRequest
impl Send for GraphSearchRequest
impl Sync for GraphSearchRequest
impl Unpin for GraphSearchRequest
impl UnsafeUnpin for GraphSearchRequest
impl UnwindSafe for GraphSearchRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.