pub struct Node {
pub created_index: Option<u64>,
pub dir: Option<bool>,
pub expiration: Option<String>,
pub key: Option<String>,
pub modified_index: Option<u64>,
pub nodes: Option<Vec<Node>>,
pub ttl: Option<i64>,
pub value: Option<String>,
}
Expand description
An etcd key or directory.
Fields§
§created_index: Option<u64>
The new value of the etcd creation index.
dir: Option<bool>
Whether or not the node is a directory.
expiration: Option<String>
An ISO 8601 timestamp for when the key will expire.
key: Option<String>
The name of the key.
modified_index: Option<u64>
The new value of the etcd modification index.
nodes: Option<Vec<Node>>
Child nodes of a directory.
ttl: Option<i64>
The key’s time to live in seconds.
value: Option<String>
The value of the key.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Node
impl StructuralEq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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.