pub struct KeySearchRequest {
pub pattern: KeyPattern,
pub cursor: Option<Vec<u8>>,
pub limit: usize,
pub scan_budget: usize,
pub max_bytes: usize,
}Expand description
One bounded, deterministic search-page request.
Fields§
§pattern: KeyPatternExplicit glob or regex pattern.
cursor: Option<Vec<u8>>Exclusive bytewise cursor from a previous page.
limit: usizeMaximum returned entries.
scan_budget: usizeMaximum candidate keys inspected after cursor.
max_bytes: usizeMaximum combined key and value bytes inspected or returned by one page.
Implementations§
Source§impl KeySearchRequest
impl KeySearchRequest
Sourcepub fn new(
pattern: KeyPattern,
limit: usize,
scan_budget: usize,
) -> KeySearchRequest
pub fn new( pattern: KeyPattern, limit: usize, scan_budget: usize, ) -> KeySearchRequest
Construct a first-page request.
Sourcepub fn after(self, cursor: Vec<u8>) -> KeySearchRequest
pub fn after(self, cursor: Vec<u8>) -> KeySearchRequest
Continue strictly after a prior response cursor.
Sourcepub fn with_max_bytes(self, max_bytes: usize) -> KeySearchRequest
pub fn with_max_bytes(self, max_bytes: usize) -> KeySearchRequest
Override the response payload budget.
Trait Implementations§
Source§impl Clone for KeySearchRequest
impl Clone for KeySearchRequest
Source§fn clone(&self) -> KeySearchRequest
fn clone(&self) -> KeySearchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeySearchRequest
impl Debug for KeySearchRequest
Source§impl<'de> Deserialize<'de> for KeySearchRequest
impl<'de> Deserialize<'de> for KeySearchRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeySearchRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeySearchRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeySearchRequest
Source§impl PartialEq for KeySearchRequest
impl PartialEq for KeySearchRequest
Source§impl Serialize for KeySearchRequest
impl Serialize for KeySearchRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for KeySearchRequest
Auto Trait Implementations§
impl Freeze for KeySearchRequest
impl RefUnwindSafe for KeySearchRequest
impl Send for KeySearchRequest
impl Sync for KeySearchRequest
impl Unpin for KeySearchRequest
impl UnsafeUnpin for KeySearchRequest
impl UnwindSafe for KeySearchRequest
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.