pub struct MetadataFilter {
pub field: String,
pub condition: String,
pub value: Value,
}Expand description
A filter on a metadata field, used in [Client::vector_search_filtered].
Supported conditions match the Python SDK:
eq, ne, gt, gte, lt, lte, in, not_in, contains,
starts_with, ends_with.
Fields§
§field: StringThe metadata field name to filter on.
condition: StringThe condition type (e.g. "eq", "gt", "in").
value: ValueThe comparison value as a JSON value.
Implementations§
Trait Implementations§
Source§impl Clone for MetadataFilter
impl Clone for MetadataFilter
Source§fn clone(&self) -> MetadataFilter
fn clone(&self) -> MetadataFilter
Returns a duplicate 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 MetadataFilter
impl Debug for MetadataFilter
Auto Trait Implementations§
impl Freeze for MetadataFilter
impl RefUnwindSafe for MetadataFilter
impl Send for MetadataFilter
impl Sync for MetadataFilter
impl Unpin for MetadataFilter
impl UnsafeUnpin for MetadataFilter
impl UnwindSafe for MetadataFilter
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