Struct etcd::kv::GetOptions
source · Expand description
Options for customizing the behavior of kv::get
.
Fields§
§recursive: bool
If true and the node is a directory, child nodes will be returned as well.
sort: bool
If true and the node is a directory, any child nodes returned will be sorted alphabetically.
strong_consistency: bool
If true, the etcd node serving the response will synchronize with the quorum before returning the value.
This is slower but avoids possibly stale data from being returned.
Trait Implementations§
source§impl Clone for GetOptions
impl Clone for GetOptions
source§fn clone(&self) -> GetOptions
fn clone(&self) -> GetOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetOptions
impl Debug for GetOptions
source§impl Default for GetOptions
impl Default for GetOptions
source§fn default() -> GetOptions
fn default() -> GetOptions
Returns the “default value” for a type. Read more
source§impl Hash for GetOptions
impl Hash for GetOptions
source§impl PartialEq<GetOptions> for GetOptions
impl PartialEq<GetOptions> for GetOptions
source§fn eq(&self, other: &GetOptions) -> bool
fn eq(&self, other: &GetOptions) -> bool
impl Copy for GetOptions
impl Eq for GetOptions
impl StructuralEq for GetOptions
impl StructuralPartialEq for GetOptions
Auto Trait Implementations§
impl RefUnwindSafe for GetOptions
impl Send for GetOptions
impl Sync for GetOptions
impl Unpin for GetOptions
impl UnwindSafe for GetOptions
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.