Struct etcd_rs::KeyValue[][src]

pub struct KeyValue { /* fields omitted */ }
Expand description

Key-Value pair.

Implementations

Gets the key in bytes. An empty key is not allowed.

Takes the key out of response, leaving an empty vector in its place.

Converts the key from bytes &[u8] to &str. Leaves the original &[u8] in place, and creates a new string slice containing the entire content.

Gets the value held by the key, in bytes.

Takes the value out of response, leaving an empty vector in its place.

Converts the value from bytes &[u8] to &str. Leaves the original &[u8] in place, and creates a new string slice containing the entire content.

Gets the revision of last creation on this key.

Gets the revision of last modification on this key.

Gets the version of the key.

Gets the ID of the lease that attached to key.

Returns true if this KeyValue has a lease attached, and false otherwise.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

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

Performs the conversion.

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