pub struct GetOptionsBuilder { /* private fields */ }Expand description
Builder for GetOptions
§Examples
use rcfe_core::options::kv::{GetOptions, GetOptionsBuilder};
let get_options = GetOptions::builder()
.limit(10)
.serializable(true)
.build();Implementations§
Source§impl GetOptionsBuilder
impl GetOptionsBuilder
Sourcepub fn end_key(self, end_key: ByteSequence) -> Self
pub fn end_key(self, end_key: ByteSequence) -> Self
Sets the end key for range queries.
§Examples
use rcfe_core::options::kv::{GetOptionsBuilder, ByteSequence};
let get_options = GetOptionsBuilder::default()
.end_key(ByteSequence::from("end_key"))
.build();pub fn limit(self, limit: i64) -> Self
pub fn revision(self, revision: i64) -> Self
pub fn sort_order(self, sort_order: SortOrder) -> Self
pub fn sort_target(self, sort_target: SortTarget) -> Self
pub fn serializable(self, serializable: bool) -> Self
pub fn keys_only(self, keys_only: bool) -> Self
pub fn count_only(self, count_only: bool) -> Self
pub fn min_mod_revision(self, min_mod_revision: i64) -> Self
pub fn max_mod_revision(self, max_mod_revision: i64) -> Self
pub fn min_create_revision(self, min_create_revision: i64) -> Self
pub fn max_create_revision(self, max_create_revision: i64) -> Self
pub fn prefix(self, prefix: bool) -> Self
pub fn build(self) -> GetOptions
Trait Implementations§
Source§impl Clone for GetOptionsBuilder
impl Clone for GetOptionsBuilder
Source§fn clone(&self) -> GetOptionsBuilder
fn clone(&self) -> GetOptionsBuilder
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 GetOptionsBuilder
impl Debug for GetOptionsBuilder
Source§impl Default for GetOptionsBuilder
impl Default for GetOptionsBuilder
Source§fn default() -> GetOptionsBuilder
fn default() -> GetOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetOptionsBuilder
impl RefUnwindSafe for GetOptionsBuilder
impl Send for GetOptionsBuilder
impl Sync for GetOptionsBuilder
impl Unpin for GetOptionsBuilder
impl UnwindSafe for GetOptionsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request