pub struct ListOptionsBuilder { /* private fields */ }Expand description
A builder to configure list requests.
Implementations§
Source§impl ListOptionsBuilder
impl ListOptionsBuilder
Sourcepub fn limit(self, limit: u64) -> Self
pub fn limit(self, limit: u64) -> Self
The maximum number of keys returned. The default is 1000, which is the maximum. It is unlikely that you will want to change this default, but it is included for completeness.
Sourcepub fn cursor(self, cursor: String) -> Self
pub fn cursor(self, cursor: String) -> Self
A string returned by a previous response used to paginate the keys in the store.
Sourcepub fn prefix(self, prefix: String) -> Self
pub fn prefix(self, prefix: String) -> Self
A prefix that all keys must start with for them to be included in the response.
Sourcepub async fn execute(self) -> Result<ListResponse, KvError>
pub async fn execute(self) -> Result<ListResponse, KvError>
Lists the key value pairs in the kv store.
Trait Implementations§
Source§impl Clone for ListOptionsBuilder
impl Clone for ListOptionsBuilder
Source§fn clone(&self) -> ListOptionsBuilder
fn clone(&self) -> ListOptionsBuilder
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 moreAuto Trait Implementations§
impl Freeze for ListOptionsBuilder
impl RefUnwindSafe for ListOptionsBuilder
impl !Send for ListOptionsBuilder
impl !Sync for ListOptionsBuilder
impl Unpin for ListOptionsBuilder
impl UnwindSafe for ListOptionsBuilder
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