pub enum AstraWriteRequest {
Put {
key: Vec<u8>,
value: Vec<u8>,
lease: i64,
ignore_value: bool,
ignore_lease: bool,
prev_kv: bool,
},
PutBatch {
ops: Vec<AstraBatchPutOp>,
},
PutBatchRef {
batch_id: u64,
submit_ts_micros: u64,
values: Vec<Vec<u8>>,
ops: Vec<AstraBatchPutRefOp>,
},
PutBatchTokenized {
batch_id: u64,
submit_ts_micros: u64,
dict_epoch: u64,
dict_additions: Vec<AstraTokenValue>,
ops: Vec<AstraBatchPutTokenOp>,
},
DeleteRange {
key: Vec<u8>,
range_end: Vec<u8>,
prev_kv: bool,
},
Txn {
compare: Vec<AstraTxnCompare>,
success: Vec<AstraTxnOp>,
failure: Vec<AstraTxnOp>,
},
Compact {
revision: i64,
},
LeaseGrant {
id: i64,
ttl: i64,
},
LeaseRevoke {
id: i64,
},
LeaseKeepAlive {
id: i64,
},
}Variants§
Put
PutBatch
Fields
§
ops: Vec<AstraBatchPutOp>PutBatchRef
PutBatchTokenized
DeleteRange
Txn
Compact
LeaseGrant
LeaseRevoke
LeaseKeepAlive
Trait Implementations§
Source§impl Clone for AstraWriteRequest
impl Clone for AstraWriteRequest
Source§fn clone(&self) -> AstraWriteRequest
fn clone(&self) -> AstraWriteRequest
Returns a duplicate 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 AstraWriteRequest
impl Debug for AstraWriteRequest
Source§impl<'de> Deserialize<'de> for AstraWriteRequest
impl<'de> Deserialize<'de> for AstraWriteRequest
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 AstraWriteRequest
impl RefUnwindSafe for AstraWriteRequest
impl Send for AstraWriteRequest
impl Sync for AstraWriteRequest
impl Unpin for AstraWriteRequest
impl UnsafeUnpin for AstraWriteRequest
impl UnwindSafe for AstraWriteRequest
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§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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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::RequestCreates a shared type from an unshared type.