pub struct SearchRequest {
pub query: String,
pub scopes: Vec<i32>,
pub kinds: Vec<i32>,
pub limit: u32,
pub cursor: String,
pub filters: Option<ScopeFilters>,
pub union_rank: bool,
}Fields§
§query: StringFree-text DSL; empty ⇒ INVALID_ARGUMENT.
scopes: Vec<i32>Legacy kinds filter. Empty ⇒ all kinds that survive the dispatcher.
kinds: Vec<i32>Preferred explicit kinds. AND’d with scopes when both are set.
limit: u320 ⇒ default(20); server-capped at 50 (per section, or total in union mode).
cursor: StringOpaque continuation token (sectioned = multi-domain map).
filters: Option<ScopeFilters>Structured filters; AND with query qualifiers.
union_rank: boolfalse ⇒ sectioned federation (default); true ⇒ RRF union when eligible.
Implementations§
Source§impl SearchRequest
impl SearchRequest
Sourcepub fn scopes(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SearchEntityKind>> ⓘ
pub fn scopes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SearchEntityKind>> ⓘ
Returns an iterator which yields the valid enum values contained in scopes.
Sourcepub fn push_scopes(&mut self, value: SearchEntityKind)
pub fn push_scopes(&mut self, value: SearchEntityKind)
Appends the provided enum value to scopes.
Sourcepub fn kinds(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SearchEntityKind>> ⓘ
pub fn kinds( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SearchEntityKind>> ⓘ
Returns an iterator which yields the valid enum values contained in kinds.
Sourcepub fn push_kinds(&mut self, value: SearchEntityKind)
pub fn push_kinds(&mut self, value: SearchEntityKind)
Appends the provided enum value to kinds.
Trait Implementations§
Source§impl Clone for SearchRequest
impl Clone for SearchRequest
Source§fn clone(&self) -> SearchRequest
fn clone(&self) -> SearchRequest
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 SearchRequest
impl Debug for SearchRequest
Source§impl Default for SearchRequest
impl Default for SearchRequest
impl Eq for SearchRequest
Source§impl Hash for SearchRequest
impl Hash for SearchRequest
Source§impl Message for SearchRequest
impl Message for SearchRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SearchRequest
impl PartialEq for SearchRequest
impl StructuralPartialEq for SearchRequest
Auto Trait Implementations§
impl Freeze for SearchRequest
impl RefUnwindSafe for SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnsafeUnpin for SearchRequest
impl UnwindSafe for SearchRequest
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