pub enum ScopeQueryResult {
Explain {
entry: String,
matches: Vec<ScopedExplanation>,
missed: u32,
failures: Vec<ScopedQueryFailure>,
},
Search {
search: ScopeSearch,
},
}Expand description
Projection result carried by a scope-query response.
Variants§
Explain
Semantic entries found across the scope.
Fields
§
matches: Vec<ScopedExplanation>Documents with one or more exact candidates.
§
failures: Vec<ScopedQueryFailure>Ambiguity or projection failures, excluding ordinary misses.
Search
Globally paginated text search.
Fields
§
search: ScopeSearchSearch result grouped by document.
Trait Implementations§
Source§impl Clone for ScopeQueryResult
impl Clone for ScopeQueryResult
Source§fn clone(&self) -> ScopeQueryResult
fn clone(&self) -> ScopeQueryResult
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 ScopeQueryResult
impl Debug for ScopeQueryResult
Source§impl<'de> Deserialize<'de> for ScopeQueryResult
impl<'de> Deserialize<'de> for ScopeQueryResult
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
impl Eq for ScopeQueryResult
Source§impl JsonSchema for ScopeQueryResult
impl JsonSchema for ScopeQueryResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ScopeQueryResult
impl PartialEq for ScopeQueryResult
Source§impl Serialize for ScopeQueryResult
impl Serialize for ScopeQueryResult
impl StructuralPartialEq for ScopeQueryResult
Auto Trait Implementations§
impl Freeze for ScopeQueryResult
impl RefUnwindSafe for ScopeQueryResult
impl Send for ScopeQueryResult
impl Sync for ScopeQueryResult
impl Unpin for ScopeQueryResult
impl UnsafeUnpin for ScopeQueryResult
impl UnwindSafe for ScopeQueryResult
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