Struct etcd::kv::GetOptions
[−]
[src]
pub struct GetOptions { pub recursive: bool, pub sort: bool, pub strong_consistency: bool, }
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
impl Clone for GetOptions
[src]
fn clone(&self) -> GetOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for GetOptions
[src]
impl Debug for GetOptions
[src]
impl Default for GetOptions
[src]
fn default() -> GetOptions
Returns the "default value" for a type. Read more
impl Eq for GetOptions
[src]
impl Hash for GetOptions
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for GetOptions
[src]
fn eq(&self, __arg_0: &GetOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GetOptions) -> bool
This method tests for !=
.