pub struct PartRule {
pub kind: String,
pub attach_to: Option<AttachTo>,
pub anchor: Option<String>,
pub order: Vec<String>,
pub parent: Option<String>,
pub prune: Vec<String>,
pub title: Vec<FieldRule>,
pub body: Vec<FieldRule>,
pub tags: Vec<FieldRule>,
}Expand description
One collection’s indexing rule.
Fields§
§kind: StringRTDB collection name.
attach_to: Option<AttachTo>When set, this rule contributes text to another part instead of emitting rows of its own.
anchor: Option<String>Field (or DOC_ID) recorded as the row’s anchor_id. Only the first
contributing document wins, so the anchor points at the first hit.
order: Vec<String>Fields to sort contributions by, so an assembled body follows reading order.
parent: Option<String>Field naming this document’s parent, for tree display of results.
prune: Vec<String>RFC 9535 queries whose matches are deleted from a document of this
kind before any field rule below sees it. See crate::prune.
Kept as the query text: Queryable::delete_by_path takes &str and
reparses it itself, so a compiled JpQuery stored here would never be
evaluated. It is still compiled once at registration — so a malformed
pattern is a 4xx on the manifest rather than a per-document warn!
forever after — and then dropped.
title: Vec<FieldRule>§body: Vec<FieldRule>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PartRule
impl RefUnwindSafe for PartRule
impl Send for PartRule
impl Sync for PartRule
impl Unpin for PartRule
impl UnsafeUnpin for PartRule
impl UnwindSafe for PartRule
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more