Enum elasticsearch_dsl::search::queries::params::PinnedQueryValues
source · pub enum PinnedQueryValues {
Ids(Set<String>),
Docs(Set<PinnedDocument>),
}
Expand description
Ids or documents to filter by
Variants§
Ids(Set<String>)
Document IDs listed in the order they are to appear in results.
Docs(Set<PinnedDocument>)
Documents listed in the order they are to appear in results.
Implementations§
source§impl PinnedQueryValues
impl PinnedQueryValues
sourcepub fn ids<I>(ids: I) -> Selfwhere
I: IntoIterator,
I::Item: ToString,
pub fn ids<I>(ids: I) -> Selfwhere
I: IntoIterator,
I::Item: ToString,
Creates an instance of PinnedQueryValues
with PinnedQueryValues::Ids
sourcepub fn docs<I>(docs: I) -> Selfwhere
I: IntoIterator<Item = PinnedDocument>,
pub fn docs<I>(docs: I) -> Selfwhere
I: IntoIterator<Item = PinnedDocument>,
Creates an instance of PinnedQueryValues
with PinnedQueryValues::Docs
Trait Implementations§
source§impl Clone for PinnedQueryValues
impl Clone for PinnedQueryValues
source§fn clone(&self) -> PinnedQueryValues
fn clone(&self) -> PinnedQueryValues
Returns a copy of the value. Read more
1.0.0 · 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 PinnedQueryValues
impl Debug for PinnedQueryValues
source§impl<'de> Deserialize<'de> for PinnedQueryValues
impl<'de> Deserialize<'de> for PinnedQueryValues
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
source§impl Ord for PinnedQueryValues
impl Ord for PinnedQueryValues
source§fn cmp(&self, other: &PinnedQueryValues) -> Ordering
fn cmp(&self, other: &PinnedQueryValues) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PinnedQueryValues> for PinnedQueryValues
impl PartialEq<PinnedQueryValues> for PinnedQueryValues
source§fn eq(&self, other: &PinnedQueryValues) -> bool
fn eq(&self, other: &PinnedQueryValues) -> bool
source§impl PartialOrd<PinnedQueryValues> for PinnedQueryValues
impl PartialOrd<PinnedQueryValues> for PinnedQueryValues
source§fn partial_cmp(&self, other: &PinnedQueryValues) -> Option<Ordering>
fn partial_cmp(&self, other: &PinnedQueryValues) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more