Struct worker_kv::PutOptionsBuilder[][src]

pub struct PutOptionsBuilder { /* fields omitted */ }

A builder to configure put requests.

Implementations

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 Debug for PutOptionsBuilder[src]

impl Serialize for PutOptionsBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToRawKvValue for T where
    T: Serialize
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.