Struct etcd_client::GetOptions[][src]

pub struct GetOptions { /* fields omitted */ }

Options for Get operation.

Implementations

impl GetOptions[src]

pub const fn new() -> Self[src]

Creates a GetOptions.

pub fn with_range(self, end_key: impl Into<Vec<u8>>) -> Self[src]

Specifies the range of ‘Get’. Returns the keys in the range [key, end_key). end_key must be lexicographically greater than start key.

pub fn with_from_key(self) -> Self[src]

Gets all keys >= key.

pub fn with_prefix(self) -> Self[src]

Gets all keys prefixed with key.

pub fn with_all_keys(self) -> Self[src]

Gets all keys.

pub const fn with_limit(self, limit: i64) -> Self[src]

Limits the number of keys returned for the request. When limit is set to 0, it is treated as no limit.

pub const fn with_revision(self, revision: i64) -> Self[src]

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.

pub fn with_sort(self, target: SortTarget, order: SortOrder) -> Self[src]

Sets the order for returned sorted results. It requires ‘with_range’ and/or ‘with_prefix’ to be specified too.

pub const fn with_serializable(self) -> Self[src]

Sets the get request to use serializable member-local reads. Get 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 get request is served locally without needing to reach consensus with other nodes in the cluster.

pub const fn with_keys_only(self) -> Self[src]

Returns only the keys and not the values.

pub const fn with_count_only(self) -> Self[src]

Returns only the count of the keys in the range.

pub const fn with_min_mod_revision(self, revision: i64) -> Self[src]

Sets the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.

pub const fn with_max_mod_revision(self, revision: i64) -> Self[src]

Sets the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.

pub const fn with_min_create_revision(self, revision: i64) -> Self[src]

Sets the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.

pub const fn with_max_create_revision(self, revision: i64) -> Self[src]

max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.

Trait Implementations

impl Clone for GetOptions[src]

impl Debug for GetOptions[src]

impl Default for GetOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]