Struct worker_kv::PutOptionsBuilder [−][src]
pub struct PutOptionsBuilder { /* fields omitted */ }
A builder to configure put requests.
Implementations
impl PutOptionsBuilder
[src]
impl PutOptionsBuilder
[src]pub fn expiration(self, expiration: u64) -> Self
[src]
When (expressed as a unix timestamp) the key value pair will expire in the store.
pub fn expiration_ttl(self, expiration_ttl: u64) -> Self
[src]
How many seconds until the key value pair will expire.
pub fn metadata<T: Serialize>(self, metadata: T) -> Result<Self, KvError>
[src]
Metadata to be stored with the key value pair.
pub async fn execute(self) -> Result<(), KvError>
[src]
Puts the value in the kv store.
Trait Implementations
impl Clone for PutOptionsBuilder
[src]
impl Clone for PutOptionsBuilder
[src]fn clone(&self) -> PutOptionsBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Serialize for PutOptionsBuilder
[src]
impl Serialize for PutOptionsBuilder
[src]Auto Trait Implementations
impl RefUnwindSafe for PutOptionsBuilder
impl RefUnwindSafe for PutOptionsBuilder
impl !Send for PutOptionsBuilder
impl !Send for PutOptionsBuilder
impl !Sync for PutOptionsBuilder
impl !Sync for PutOptionsBuilder
impl Unpin for PutOptionsBuilder
impl Unpin for PutOptionsBuilder
impl UnwindSafe for PutOptionsBuilder
impl UnwindSafe for PutOptionsBuilder