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§impl PartialOrd for PinnedQueryValues
impl PartialOrd for PinnedQueryValues
Source§impl Serialize for PinnedQueryValues
impl Serialize for PinnedQueryValues
impl Eq for PinnedQueryValues
impl StructuralPartialEq for PinnedQueryValues
Auto Trait Implementations§
impl Freeze for PinnedQueryValues
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