[][src]Struct etcdv3client::pb::PutRequest

pub struct PutRequest {
    pub key: Vec<u8>,
    pub value: Vec<u8>,
    pub lease: i64,
    pub prev_kv: bool,
    pub ignore_value: bool,
    pub ignore_lease: bool,
}

Fields

key: Vec<u8>

key is the key, in bytes, to put into the key-value store.

value: Vec<u8>

value is the value, in bytes, to associate with the key in the key-value store.

lease: i64

lease is the lease ID to associate with the key in the key-value store. A lease value of 0 indicates no lease.

prev_kv: bool

If prev_kv is set, etcd gets the previous key-value pair before changing it. The previous key-value pair will be returned in the put response.

ignore_value: bool

If ignore_value is set, etcd updates the key using its current value. Returns an error if the key does not exist.

ignore_lease: bool

If ignore_lease is set, etcd updates the key using its current lease. Returns an error if the key does not exist.

Trait Implementations

impl Clone for PutRequest[src]

impl Default for PutRequest[src]

impl PartialEq<PutRequest> for PutRequest[src]

impl Debug for PutRequest[src]

impl StructuralPartialEq for PutRequest[src]

impl Message for PutRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoRequest<T> for T[src]