pub struct Scan {
pub coll: String,
pub as_of: Option<u64>,
pub valid_as_of: Option<String>,
pub search: Option<String>,
pub trace: Option<String>,
pub trace_reverse: bool,
pub traverse: Option<String>,
pub trace_limit: usize,
}Expand description
One relation to read, and the qualifiers that shape it.
Every field is a question the store can answer directly. There is no
rendering step and nothing to escape — SEARCH 'o''brien' was a quoting
problem when this was a string, and is not one now.
Fields§
§coll: StringThe collection name.
as_of: Option<u64>AS OF SYSTEM TIME <seq> — system time, a sequence.
valid_as_of: Option<String>VALID AS OF '<date>' — application time, a date string.
search: Option<String>SEARCH '<text>' — substring over the document’s rendered fields.
trace: Option<String>TRACE <edge> [REVERSE] — replace each row with its causal chain.
trace_reverse: boolWalk effects rather than causes.
traverse: Option<String>TRAVERSE <rel> — replace each row with its one-hop neighbours.
trace_limit: usizeChain length cap for TRACE.
Explicit rather than defaulted at the call site. NQL took this from the
query’s LIMIT and fell back to 1000 — which silently conflated “how
many rows do I want back” with “how deep may a causal chain go”, two
unrelated numbers. They are separate here, and a truncated chain is a
thing the caller chose.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scan
impl RefUnwindSafe for Scan
impl Send for Scan
impl Sync for Scan
impl Unpin for Scan
impl UnsafeUnpin for Scan
impl UnwindSafe for Scan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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