Struct etcd_client::GetOptions [−][src]
pub struct GetOptions { /* fields omitted */ }
Options for Get
operation.
Implementations
impl GetOptions
[src]
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 Clone for GetOptions
[src]fn clone(&self) -> GetOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for GetOptions
[src]
impl Default for GetOptions
[src]fn default() -> GetOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for GetOptions
impl RefUnwindSafe for GetOptions
impl Send for GetOptions
impl Send for GetOptions
impl Sync for GetOptions
impl Sync for GetOptions
impl Unpin for GetOptions
impl Unpin for GetOptions
impl UnwindSafe for GetOptions
impl UnwindSafe for GetOptions
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> IntoRequest<T> for T
[src]
impl<T> IntoRequest<T> for T
[src]pub fn into_request(self) -> Request<T>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,