pub struct GetOptions { /* private fields */ }
Expand description

Options for Get operation.

Implementations

Creates a GetOptions.

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

Gets all keys >= key.

Gets all keys prefixed with key.

Gets all keys.

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

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.

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

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.

Returns only the keys and not the values.

Returns only the count of the keys in the range.

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

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

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

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more