pub struct QueryScatterRequest {
pub query_id: u64,
pub terms: Vec<String>,
pub max_local_results: usize,
pub embedding: Option<Vec<f32>>,
pub include_ghosts: bool,
}Expand description
Query scatter request (from coordinator to shards).
Part of the scatter-gather query pattern. The coordinator sends this to all shards to execute local queries.
Fields§
§query_id: u64Unique identifier for this query.
terms: Vec<String>Search terms for the query.
max_local_results: usizeMaximum results to return from each shard.
embedding: Option<Vec<f32>>Optional embedding vector for semantic search.
include_ghosts: boolWhether to search ghost nodes.
Trait Implementations§
Source§impl Clone for QueryScatterRequest
impl Clone for QueryScatterRequest
Source§fn clone(&self) -> QueryScatterRequest
fn clone(&self) -> QueryScatterRequest
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 QueryScatterRequest
impl Debug for QueryScatterRequest
Source§impl<'de> Deserialize<'de> for QueryScatterRequest
impl<'de> Deserialize<'de> for QueryScatterRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueryScatterRequest
impl RefUnwindSafe for QueryScatterRequest
impl Send for QueryScatterRequest
impl Sync for QueryScatterRequest
impl Unpin for QueryScatterRequest
impl UnsafeUnpin for QueryScatterRequest
impl UnwindSafe for QueryScatterRequest
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