pub struct DeleteObjectRequest {
pub store_id: String,
pub key_value: Option<KeyValue>,
}
Expand description
Request payload to be used for DeleteObject
API call to server.
Fields§
§store_id: String
store_id
is a keyspace identifier.
Ref: https://en.wikipedia.org/wiki/Keyspace_(distributed_data_store)
All APIs operate within a single store_id
.
It is up to clients to use single or multiple stores for their use-case.
This can be used for client-isolation/ rate-limiting / throttling on the server-side.
Authorization and billing can also be performed at the store_id
level.
key_value: Option<KeyValue>
Item to be deleted as a result of this DeleteObjectRequest
.
An item consists of a key
and its corresponding version
.
Key-level Versioning (Conditional Delete):
The item is only deleted if the current database version against the key
is the same as
the version
specified in the request.
Skipping key-level versioning (Non-conditional Delete):
If you wish to skip key-level version checks, set the version
against the key
to ‘-1’.
This will perform a non-conditional delete query.
This operation is idempotent, that is, multiple delete calls for the same item will not fail.
If the requested item does not exist, this operation will not fail.
If you wish to perform stricter checks while deleting an item, consider using PutObject
API.
Trait Implementations§
Source§impl Clone for DeleteObjectRequest
impl Clone for DeleteObjectRequest
Source§fn clone(&self) -> DeleteObjectRequest
fn clone(&self) -> DeleteObjectRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeleteObjectRequest
impl Debug for DeleteObjectRequest
Source§impl Default for DeleteObjectRequest
impl Default for DeleteObjectRequest
Source§impl Message for DeleteObjectRequest
impl Message for DeleteObjectRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.