[−][src]Struct etcdv3client::pb::RangeRequest
Fields
key: Vec<u8>
key is the first key for the range. If range_end is not given, the request only looks up key.
range_end: Vec<u8>
range_end is the upper bound on the requested range [key, range_end). If range_end is '\0', the range is all keys >= key. If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"), then the range request gets all keys prefixed with key. If both key and range_end are '\0', then the range request returns all keys.
limit: i64
limit is a limit on the number of keys returned for the request. When limit is set to 0, it is treated as no limit.
revision: i64
revision is the point-in-time of the key-value store to use for the range. If revision is less or equal to zero, the range is over the newest key-value store. If the revision has been compacted, ErrCompacted is returned as a response.
sort_order: i32
sort_order is the order for returned sorted results.
sort_target: i32
sort_target is the key-value field to use for sorting.
serializable: bool
serializable sets the range request to use serializable member-local reads. Range requests are linearizable by default; linearizable requests have higher latency and lower throughput than serializable requests but reflect the current consensus of the cluster. For better performance, in exchange for possible stale reads, a serializable range request is served locally without needing to reach consensus with other nodes in the cluster.
keys_only: bool
keys_only when set returns only the keys and not the values.
count_only: bool
count_only when set returns only the count of the keys in the range.
min_mod_revision: i64
min_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.
max_mod_revision: i64
max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.
min_create_revision: i64
min_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.
max_create_revision: i64
max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.
Methods
impl RangeRequest
[src]
pub fn sort_order(&self) -> SortOrder
[src]
pub fn set_sort_order(&mut self, value: SortOrder)
[src]
pub fn sort_target(&self) -> SortTarget
[src]
pub fn set_sort_target(&mut self, value: SortTarget)
[src]
Trait Implementations
impl Clone for RangeRequest
[src]
fn clone(&self) -> RangeRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for RangeRequest
[src]
fn default() -> RangeRequest
[src]
impl PartialEq<RangeRequest> for RangeRequest
[src]
fn eq(&self, other: &RangeRequest) -> bool
[src]
fn ne(&self, other: &RangeRequest) -> bool
[src]
impl Debug for RangeRequest
[src]
impl StructuralPartialEq for RangeRequest
[src]
impl Message for RangeRequest
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(&mut self, buf: &mut B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: IntoBuf,
Self: Default,
[src]
B: IntoBuf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: IntoBuf,
Self: Default,
[src]
B: IntoBuf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: IntoBuf,
[src]
B: IntoBuf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: IntoBuf,
[src]
B: IntoBuf,
Auto Trait Implementations
impl Send for RangeRequest
impl Sync for RangeRequest
impl Unpin for RangeRequest
impl UnwindSafe for RangeRequest
impl RefUnwindSafe for RangeRequest
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,