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
sourceimpl PinnedQueryValues
impl PinnedQueryValues
sourcepub fn ids<I>(ids: I) -> Self where
I: IntoIterator,
I::Item: ToString,
pub fn ids<I>(ids: I) -> Self where
I: IntoIterator,
I::Item: ToString,
Creates an instance of PinnedQueryValues
with PinnedQueryValues::Ids
sourcepub fn docs<I>(docs: I) -> Self where
I: IntoIterator<Item = PinnedDocument>,
pub fn docs<I>(docs: I) -> Self where
I: IntoIterator<Item = PinnedDocument>,
Creates an instance of PinnedQueryValues
with PinnedQueryValues::Docs
Trait Implementations
sourceimpl Clone for PinnedQueryValues
impl Clone for PinnedQueryValues
sourcefn clone(&self) -> PinnedQueryValues
fn clone(&self) -> PinnedQueryValues
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PinnedQueryValues
impl Debug for PinnedQueryValues
sourceimpl<'de> Deserialize<'de> for PinnedQueryValues
impl<'de> Deserialize<'de> for PinnedQueryValues
sourcefn 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
sourceimpl Ord for PinnedQueryValues
impl Ord for PinnedQueryValues
sourceimpl PartialEq<PinnedQueryValues> for PinnedQueryValues
impl PartialEq<PinnedQueryValues> for PinnedQueryValues
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PinnedQueryValues) -> bool
fn ne(&self, other: &PinnedQueryValues) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PinnedQueryValues> for PinnedQueryValues
impl PartialOrd<PinnedQueryValues> for PinnedQueryValues
sourcefn partial_cmp(&self, other: &PinnedQueryValues) -> Option<Ordering>
fn partial_cmp(&self, other: &PinnedQueryValues) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more