pub enum Key {
Document,
Embedding,
Metadata,
Score,
MetadataField(String),
}Variants§
Implementations§
Source§impl Key
impl Key
Sourcepub fn eq<T: Into<MetadataValue>>(self, value: T) -> Where
pub fn eq<T: Into<MetadataValue>>(self, value: T) -> Where
Equality: Key::field(“status”).eq(“active”)
Sourcepub fn ne<T: Into<MetadataValue>>(self, value: T) -> Where
pub fn ne<T: Into<MetadataValue>>(self, value: T) -> Where
Not equal: Key::field(“status”).ne(“deleted”)
Sourcepub fn gt<T: Into<MetadataValue>>(self, value: T) -> Where
pub fn gt<T: Into<MetadataValue>>(self, value: T) -> Where
Greater than: Key::field(“score”).gt(0.5)
Sourcepub fn gte<T: Into<MetadataValue>>(self, value: T) -> Where
pub fn gte<T: Into<MetadataValue>>(self, value: T) -> Where
Greater than or equal: Key::field(“score”).gte(0.5)
Sourcepub fn lt<T: Into<MetadataValue>>(self, value: T) -> Where
pub fn lt<T: Into<MetadataValue>>(self, value: T) -> Where
Less than: Key::field(“score”).lt(0.9)
Sourcepub fn lte<T: Into<MetadataValue>>(self, value: T) -> Where
pub fn lte<T: Into<MetadataValue>>(self, value: T) -> Where
Less than or equal: Key::field(“score”).lte(0.9)
Sourcepub fn is_in<I, T>(self, values: I) -> Where
pub fn is_in<I, T>(self, values: I) -> Where
In set: Key::field(“year”).is_in(vec![2023, 2024, 2025]) Also accepts arrays, slices, and any iterator
Sourcepub fn not_in<I, T>(self, values: I) -> Where
pub fn not_in<I, T>(self, values: I) -> Where
Not in set: Key::field(“status”).not_in(vec![“deleted”, “archived”]) Also accepts arrays, slices, and any iterator
Sourcepub fn contains<S: Into<String>>(self, text: S) -> Where
pub fn contains<S: Into<String>>(self, text: S) -> Where
Contains text: Key::Document.contains(“search term”)
Sourcepub fn not_contains<S: Into<String>>(self, text: S) -> Where
pub fn not_contains<S: Into<String>>(self, text: S) -> Where
Does not contain text: Key::Document.not_contains(“exclude term”)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
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 Key
impl Ord for Key
Source§impl PartialOrd for Key
impl PartialOrd for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP