pub struct MemoryQuery {
pub key_pattern: Option<String>,
pub namespace: Option<String>,
pub limit: Option<usize>,
pub offset: Option<usize>,
pub sort_order: Option<SortOrder>,
}Expand description
Query options for memory operations
Fields§
§key_pattern: Option<String>Key pattern/prefix to match
namespace: Option<String>Namespace/collection filter
limit: Option<usize>Maximum results
offset: Option<usize>Skip first N results
sort_order: Option<SortOrder>Sort order
Implementations§
Source§impl MemoryQuery
impl MemoryQuery
pub fn new() -> Self
pub fn with_pattern(self, pattern: impl Into<String>) -> Self
pub fn with_namespace(self, namespace: 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 MemoryQuery
impl Clone for MemoryQuery
Source§fn clone(&self) -> MemoryQuery
fn clone(&self) -> MemoryQuery
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 MemoryQuery
impl Debug for MemoryQuery
Source§impl Default for MemoryQuery
impl Default for MemoryQuery
Source§fn default() -> MemoryQuery
fn default() -> MemoryQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryQuery
impl RefUnwindSafe for MemoryQuery
impl Send for MemoryQuery
impl Sync for MemoryQuery
impl Unpin for MemoryQuery
impl UnwindSafe for MemoryQuery
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