Struct etcd_client::PutOptions [−][src]
#[repr(transparent)]pub struct PutOptions(_);
Options for Put
operation.
Implementations
impl PutOptions
[src]
impl PutOptions
[src]pub const fn new() -> Self
[src]
Creates a PutOptions
.
pub const fn with_lease(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(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(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(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 Clone for PutOptions
[src]fn clone(&self) -> PutOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for PutOptions
[src]
impl Default for PutOptions
[src]fn default() -> PutOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for PutOptions
impl RefUnwindSafe for PutOptions
impl Send for PutOptions
impl Send for PutOptions
impl Sync for PutOptions
impl Sync for PutOptions
impl Unpin for PutOptions
impl Unpin for PutOptions
impl UnwindSafe for PutOptions
impl UnwindSafe for PutOptions
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> IntoRequest<T> for T
[src]
impl<T> IntoRequest<T> for T
[src]pub fn into_request(self) -> Request<T>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,