pub struct PutOptions {
pub lease: i64,
pub prev_kv: bool,
pub ignore_lease: bool,
pub ignore_value: bool,
}Fields§
§lease: i64lease is the lease ID to associate with the key in the key-value store. A lease value of 0 indicates no lease.
prev_kv: boolIf true, the previous key-value pair will be returned in the response. Default is false.
ignore_lease: boolIf true, the lease field in the PutRequest will be ignored. Default is false.
ignore_value: boolIf true, the value field in the PutRequest will be ignored. Default is false.
Implementations§
Source§impl PutOptions
impl PutOptions
pub fn to_request(&self, key: &ByteSequence, value: &ByteSequence) -> PutRequest
pub fn builder() -> PutOptionsBuilder
Trait Implementations§
Source§impl Clone for PutOptions
impl Clone for PutOptions
Source§fn clone(&self) -> PutOptions
fn clone(&self) -> PutOptions
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 PutOptions
impl Debug for PutOptions
Source§impl Default for PutOptions
impl Default for PutOptions
Source§fn default() -> PutOptions
fn default() -> PutOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PutOptions
impl RefUnwindSafe for PutOptions
impl Send for PutOptions
impl Sync for PutOptions
impl Unpin for PutOptions
impl UnwindSafe for PutOptions
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> 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