pub struct DeleteBuilder { /* private fields */ }Expand description
A pending delete, created with OxiaClient::delete. Chain options and
.await it.
Implementations§
Source§impl DeleteBuilder
impl DeleteBuilder
Sourcepub fn expected_version_id(self, version_id: i64) -> Self
pub fn expected_version_id(self, version_id: i64) -> Self
Makes the delete conditional: it succeeds only if the record’s current
version id matches. Fails with OxiaError::UnexpectedVersionId
otherwise.
Sourcepub fn partition_key(self, partition_key: impl Into<String>) -> Self
pub fn partition_key(self, partition_key: impl Into<String>) -> Self
Routes the delete to the shard owning partition_key. Required for
records that were written with a partition key.
Trait Implementations§
Source§impl Debug for DeleteBuilder
impl Debug for DeleteBuilder
Source§impl IntoFuture for DeleteBuilder
impl IntoFuture for DeleteBuilder
Source§type IntoFuture = Pin<Box<dyn Future<Output = <DeleteBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <DeleteBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DeleteBuilder
impl !UnwindSafe for DeleteBuilder
impl Freeze for DeleteBuilder
impl Send for DeleteBuilder
impl Sync for DeleteBuilder
impl Unpin for DeleteBuilder
impl UnsafeUnpin for DeleteBuilder
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> 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