Struct etcd_client::DeleteOptions
source · pub struct DeleteOptions { /* private fields */ }
Expand description
Options for Delete
operation.
Implementations§
source§impl DeleteOptions
impl DeleteOptions
sourcepub fn with_range(self, end_key: impl Into<Vec<u8>>) -> Self
pub fn with_range(self, end_key: impl Into<Vec<u8>>) -> Self
end_key
is the key following the last key to delete for the range [key, end_key).
sourcepub fn with_from_key(self) -> Self
pub fn with_from_key(self) -> Self
Deletes all keys >= key.
sourcepub fn with_prefix(self) -> Self
pub fn with_prefix(self) -> Self
Deletes all keys prefixed with key.
sourcepub fn with_all_keys(self) -> Self
pub fn with_all_keys(self) -> Self
Deletes all keys.
sourcepub const fn with_prev_key(self) -> Self
pub const fn with_prev_key(self) -> Self
If prev_kv
is set, etcd gets the previous key-value pairs before deleting it.
The previous key-value pairs will be returned in the delete response.
Trait Implementations§
source§impl Clone for DeleteOptions
impl Clone for DeleteOptions
source§fn clone(&self) -> DeleteOptions
fn clone(&self) -> DeleteOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeleteOptions
impl Debug for DeleteOptions
source§impl Default for DeleteOptions
impl Default for DeleteOptions
source§fn default() -> DeleteOptions
fn default() -> DeleteOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeleteOptions
impl RefUnwindSafe for DeleteOptions
impl Send for DeleteOptions
impl Sync for DeleteOptions
impl Unpin for DeleteOptions
impl UnwindSafe for DeleteOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request