[][src]Struct etcd_client::PutOptions

#[repr(transparent)]pub struct PutOptions(_);

Options for Put operation.

Implementations

impl PutOptions[src]

pub const fn new() -> Self[src]

Creates a PutOptions.

pub const fn with_lease(mut self: Self, lease: i64) -> Self[src]

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

pub const fn with_prev_key(mut self: Self) -> Self[src]

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.

pub const fn with_ignore_value(mut self: Self) -> Self[src]

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

pub const fn with_ignore_lease(mut self: Self) -> Self[src]

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 PutOptions[src]

impl Debug for PutOptions[src]

impl Default for PutOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]