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
sourceimpl 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
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl 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
sourcefn cmp(&self, other: &PinnedQueryValues) -> Ordering
fn cmp(&self, other: &PinnedQueryValues) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PinnedQueryValues> for PinnedQueryValues
impl PartialEq<PinnedQueryValues> for PinnedQueryValues
sourcefn eq(&self, other: &PinnedQueryValues) -> bool
fn eq(&self, other: &PinnedQueryValues) -> bool
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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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