pub struct PutOptionsBuilder { /* private fields */ }Expand description
A builder to configure put requests.
Implementations§
Source§impl PutOptionsBuilder
impl PutOptionsBuilder
Sourcepub fn expiration(self, expiration: u64) -> Self
pub fn expiration(self, expiration: u64) -> Self
When (expressed as a unix timestamp) the key value pair will expire in the store.
Sourcepub fn expiration_ttl(self, expiration_ttl: u64) -> Self
pub fn expiration_ttl(self, expiration_ttl: u64) -> Self
How many seconds until the key value pair will expire.
Trait Implementations§
Source§impl Clone for PutOptionsBuilder
impl Clone for PutOptionsBuilder
Source§fn clone(&self) -> PutOptionsBuilder
fn clone(&self) -> PutOptionsBuilder
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 moreAuto Trait Implementations§
impl Freeze for PutOptionsBuilder
impl RefUnwindSafe for PutOptionsBuilder
impl !Send for PutOptionsBuilder
impl !Sync for PutOptionsBuilder
impl Unpin for PutOptionsBuilder
impl UnwindSafe for PutOptionsBuilder
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