pub struct QueryMetaBuilder { /* private fields */ }
Expand description
Builder for QueryMeta
.
Implementations§
Source§impl QueryMetaBuilder
impl QueryMetaBuilder
Sourcepub fn last_index(&mut self, value: u64) -> &mut Self
pub fn last_index(&mut self, value: u64) -> &mut Self
LastIndex. This can be used as a WaitIndex to perform a blocking query
Sourcepub fn last_contact(&mut self, value: TimeDelta) -> &mut Self
pub fn last_contact(&mut self, value: TimeDelta) -> &mut Self
Time of last contact from the leader for the server servicing the request
Sourcepub fn known_leader(&mut self, value: bool) -> &mut Self
pub fn known_leader(&mut self, value: bool) -> &mut Self
Is there a known leader
Sourcepub fn request_time(&mut self, value: TimeDelta) -> &mut Self
pub fn request_time(&mut self, value: TimeDelta) -> &mut Self
How long did the request take
Sourcepub fn next_token(&mut self, value: String) -> &mut Self
pub fn next_token(&mut self, value: String) -> &mut Self
NextToken is the token used to indicate where to start paging for queries that support paginated lists. To resume paging from this point, pass this token in the next request’s QueryOptions
Trait Implementations§
Source§impl Clone for QueryMetaBuilder
impl Clone for QueryMetaBuilder
Source§fn clone(&self) -> QueryMetaBuilder
fn clone(&self) -> QueryMetaBuilder
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 QueryMetaBuilder
impl RefUnwindSafe for QueryMetaBuilder
impl Send for QueryMetaBuilder
impl Sync for QueryMetaBuilder
impl Unpin for QueryMetaBuilder
impl UnwindSafe for QueryMetaBuilder
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