pub struct PutOrUpdateRequestBuilder<Key, Value>{ /* private fields */ }Expand description
Convenient builder that allows creating an instance of PutOrUpdateRequest.
Implementations§
Source§impl<Key, Value> PutOrUpdateRequestBuilder<Key, Value>
impl<Key, Value> PutOrUpdateRequestBuilder<Key, Value>
Sourcepub fn new(key: Key) -> PutOrUpdateRequestBuilder<Key, Value>
pub fn new(key: Key) -> PutOrUpdateRequestBuilder<Key, Value>
Creates a new instance of PutOrUpdateRequestBuilder with the specified Key.
Sourcepub fn value(self, value: Value) -> PutOrUpdateRequestBuilder<Key, Value>
pub fn value(self, value: Value) -> PutOrUpdateRequestBuilder<Key, Value>
Sets the value in PutOrUpdateRequestBuilder.
Sourcepub fn weight(self, weight: Weight) -> PutOrUpdateRequestBuilder<Key, Value>
pub fn weight(self, weight: Weight) -> PutOrUpdateRequestBuilder<Key, Value>
Sets the weight, weight must be greater than zero.
Sourcepub fn time_to_live(
self,
time_to_live: Duration,
) -> PutOrUpdateRequestBuilder<Key, Value>
pub fn time_to_live( self, time_to_live: Duration, ) -> PutOrUpdateRequestBuilder<Key, Value>
Sets the time_to_live.
Sourcepub fn remove_time_to_live(self) -> PutOrUpdateRequestBuilder<Key, Value>
pub fn remove_time_to_live(self) -> PutOrUpdateRequestBuilder<Key, Value>
Marks a flag to remove time_to_live.
Either of time_to_live or remove_time_to_live can be provided.
Sourcepub fn build(self) -> PutOrUpdateRequest<Key, Value>
pub fn build(self) -> PutOrUpdateRequest<Key, Value>
Builds an instance of PutOrUpdateRequest.
Auto Trait Implementations§
impl<Key, Value> Freeze for PutOrUpdateRequestBuilder<Key, Value>
impl<Key, Value> RefUnwindSafe for PutOrUpdateRequestBuilder<Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for PutOrUpdateRequestBuilder<Key, Value>
impl<Key, Value> Sync for PutOrUpdateRequestBuilder<Key, Value>
impl<Key, Value> Unpin for PutOrUpdateRequestBuilder<Key, Value>
impl<Key, Value> UnwindSafe for PutOrUpdateRequestBuilder<Key, Value>where
Key: UnwindSafe,
Value: UnwindSafe,
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