pub struct KVDeleteKeyQuery {
pub dc: Option<String>,
pub recurse: Option<bool>,
pub cas: Option<u64>,
}
Fields§
§dc: Option<String>
Specifies the datacenter to query. This will default to the datacenter of the agent being queried. If the DC is invalid, the error “No path to datacenter” is returned.
recurse: Option<bool>
Specifies to delete all keys which have the specified prefix. Without this, only a key with an exact match will be deleted.
cas: Option<u64>
Specifies to use a Check-And-Set operation. This is very useful as a building block for more complex synchronization primitives. Unlike PUT, the index must be greater than 0 for Consul to take any action: a 0 index will not delete the key. If the index is non-zero, the key is only deleted if the index matches the ModifyIndex of that key.
Trait Implementations§
Source§impl Debug for KVDeleteKeyQuery
impl Debug for KVDeleteKeyQuery
Source§impl Default for KVDeleteKeyQuery
impl Default for KVDeleteKeyQuery
Source§fn default() -> KVDeleteKeyQuery
fn default() -> KVDeleteKeyQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KVDeleteKeyQuery
impl<'de> Deserialize<'de> for KVDeleteKeyQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KVDeleteKeyQuery
impl RefUnwindSafe for KVDeleteKeyQuery
impl Send for KVDeleteKeyQuery
impl Sync for KVDeleteKeyQuery
impl Unpin for KVDeleteKeyQuery
impl UnwindSafe for KVDeleteKeyQuery
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