pub struct TextCandidateScanRequest {
pub mode: i32,
pub query: String,
pub language: Option<String>,
pub limit: u64,
pub snapshot_id: u64,
}Expand description
One candidate drain. One call drains the whole distinct candidate set — this RPC is NEVER cursor-paged (a second call restarts the partition’s dedup set and re-emits terms). The index carries no per-document visibility: candidates are independent of row visibility, and the join with visible rows is the visibility filter.
Fields§
§mode: i32§query: StringFull-text query string (FTS mode), or the literal prefix / suffix
pattern (PREFIX / SUFFIX). The partition seeds it to the index’s stored
seed_chars, never the requester’s idea of them.
language: Option<String>Optional language restriction (lang:fr, or the _none sentinel).
limit: u64Per-drain guard on emitted distinct terms (0 = unlimited). Exceeding it is an ERROR, never a silent truncation: dropped candidates would drop rows.
snapshot_id: u64MVCC read timestamp (same domain as ScanPattern.snapshot_id). Accepted and logged only; the index is a term dictionary and needs no visibility state of its own.
Implementations§
Source§impl TextCandidateScanRequest
impl TextCandidateScanRequest
Sourcepub fn mode(&self) -> TextCandidateMode
pub fn mode(&self) -> TextCandidateMode
Returns the enum value of mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mode(&mut self, value: TextCandidateMode)
pub fn set_mode(&mut self, value: TextCandidateMode)
Sets mode to the provided enum value.
Trait Implementations§
Source§impl Clone for TextCandidateScanRequest
impl Clone for TextCandidateScanRequest
Source§fn clone(&self) -> TextCandidateScanRequest
fn clone(&self) -> TextCandidateScanRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TextCandidateScanRequest
impl Debug for TextCandidateScanRequest
Source§impl Default for TextCandidateScanRequest
impl Default for TextCandidateScanRequest
Source§impl Hash for TextCandidateScanRequest
impl Hash for TextCandidateScanRequest
Source§impl Message for TextCandidateScanRequest
impl Message for TextCandidateScanRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for TextCandidateScanRequest
impl PartialEq for TextCandidateScanRequest
impl Eq for TextCandidateScanRequest
impl StructuralPartialEq for TextCandidateScanRequest
Auto Trait Implementations§
impl Freeze for TextCandidateScanRequest
impl RefUnwindSafe for TextCandidateScanRequest
impl Send for TextCandidateScanRequest
impl Sync for TextCandidateScanRequest
impl Unpin for TextCandidateScanRequest
impl UnsafeUnpin for TextCandidateScanRequest
impl UnwindSafe for TextCandidateScanRequest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].