Enum elasticsearch_dsl::search::queries::params::PinnedQueryValues
source · pub enum PinnedQueryValues {
Ids(BTreeSet<String>),
Docs(BTreeSet<PinnedDocument>),
}
Expand description
Ids or documents to filter by
Variants§
Ids(BTreeSet<String>)
Document IDs listed in the order they are to appear in results.
Docs(BTreeSet<PinnedDocument>)
Documents listed in the order they are to appear in results.
Implementations§
source§impl PinnedQueryValues
impl PinnedQueryValues
sourcepub fn ids<I>(ids: I) -> Self
pub fn ids<I>(ids: I) -> Self
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 for PinnedQueryValues
impl PartialEq for PinnedQueryValues
source§fn eq(&self, other: &PinnedQueryValues) -> bool
fn eq(&self, other: &PinnedQueryValues) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PinnedQueryValues
impl PartialOrd 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 moresource§impl Serialize for PinnedQueryValues
impl Serialize for PinnedQueryValues
impl Eq for PinnedQueryValues
impl StructuralEq for PinnedQueryValues
impl StructuralPartialEq for PinnedQueryValues
Auto Trait Implementations§
impl RefUnwindSafe for PinnedQueryValues
impl Send for PinnedQueryValues
impl Sync for PinnedQueryValues
impl Unpin for PinnedQueryValues
impl UnwindSafe for PinnedQueryValues
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