pub struct StorageQuery {
pub entry_type: Option<EntryType>,
pub namespace: Option<String>,
pub key_prefix: Option<String>,
pub metadata_filters: HashMap<String, Value>,
pub limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
Storage query for bulk operations
Fields§
§entry_type: Option<EntryType>Entry type filter
namespace: Option<String>Namespace filter
key_prefix: Option<String>Key prefix filter
metadata_filters: HashMap<String, Value>Metadata filters
limit: Option<usize>Maximum results
offset: Option<usize>Offset for pagination
Implementations§
Source§impl StorageQuery
impl StorageQuery
pub fn new() -> Self
pub fn documents() -> Self
pub fn chunks() -> Self
pub fn embeddings() -> Self
pub fn with_entry_type(self, entry_type: EntryType) -> Self
pub fn with_namespace(self, namespace: impl Into<String>) -> Self
pub fn with_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_limit(self, limit: usize) -> Self
pub fn with_offset(self, offset: usize) -> Self
Trait Implementations§
Source§impl Clone for StorageQuery
impl Clone for StorageQuery
Source§fn clone(&self) -> StorageQuery
fn clone(&self) -> StorageQuery
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 StorageQuery
impl Debug for StorageQuery
Auto Trait Implementations§
impl Freeze for StorageQuery
impl RefUnwindSafe for StorageQuery
impl Send for StorageQuery
impl Sync for StorageQuery
impl Unpin for StorageQuery
impl UnwindSafe for StorageQuery
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