Struct worker_kv::PutOptionsBuilder
source · 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 copy 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 PutOptionsBuilder
impl Debug for PutOptionsBuilder
Auto 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