pub enum QueryView {
Full {},
Outline {
entries: EntryProjection,
root: Option<NodeSelector>,
},
Excerpt {
selectors: Vec<NodeSelector>,
},
Explain {
entry: String,
},
Search {
pattern: String,
syntax: SearchSyntax,
case: SearchCase,
scope: SearchScope,
word: bool,
context_lines: u16,
limit: u32,
offset: u32,
},
}Expand description
Projection requested after loading one complete structured document.
Variants§
Full
Return the complete structured query bundle.
Outline
Return a navigable structural projection.
Fields
§
entries: EntryProjectionSemantic entry material included beneath structural nodes.
§
root: Option<NodeSelector>Optional section or entry used as the outline root.
Excerpt
Return content selected by one or more node paths, IDs, or aliases.
Fields
§
selectors: Vec<NodeSelector>Ordered selectors resolved by the engine.
Explain
Resolve exactly one semantic entry and return its complete description.
Search
Search visible document content with bounded pagination.
Fields
§
syntax: SearchSyntaxPattern language.
§
case: SearchCaseCase-matching policy.
§
scope: SearchScopeSemantic content included in the search.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryView
impl<'de> Deserialize<'de> for QueryView
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 QueryView
Source§impl JsonSchema for QueryView
impl JsonSchema for QueryView
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 moreimpl StructuralPartialEq for QueryView
Auto Trait Implementations§
impl Freeze for QueryView
impl RefUnwindSafe for QueryView
impl Send for QueryView
impl Sync for QueryView
impl Unpin for QueryView
impl UnsafeUnpin for QueryView
impl UnwindSafe for QueryView
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