[−][src]Struct etcd_client::GetOptions
Options for Get operation.
Implementations
impl GetOptions[src]
pub const fn new() -> Self[src]
Creates a GetOptions.
pub fn with_range(mut self: 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(mut self: Self) -> Self[src]
Gets all keys >= key.
pub fn with_prefix(mut self: Self) -> Self[src]
Gets all keys prefixed with key.
pub fn with_all_keys(mut self: Self) -> Self[src]
Gets all keys.
pub const fn with_limit(mut self: 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(mut self: 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(mut self: 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(mut self: 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(mut self: Self) -> Self[src]
Returns only the keys and not the values.
pub const fn with_count_only(mut self: Self) -> Self[src]
Returns only the count of the keys in the range.
pub const fn with_min_mod_revision(mut self: 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(mut self: 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(mut self: 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(mut self: 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]
pub fn clone(&self) -> GetOptions[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for GetOptions[src]
impl Default for GetOptions[src]
pub fn default() -> GetOptions[src]
Auto Trait Implementations
impl RefUnwindSafe for GetOptions[src]
impl Send for GetOptions[src]
impl Sync for GetOptions[src]
impl Unpin for GetOptions[src]
impl UnwindSafe for GetOptions[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> 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]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoRequest<T> for T[src]
pub fn into_request(self) -> Request<T>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,