Struct bonsaidb::core::keyvalue::set::Builder [−][src]
pub struct Builder<'a, KeyValue, V> { /* fields omitted */ }
Expand description
Builder for a Command::Set
key-value operation.
Implementations
Set this key to expire after duration
from now.
Set this key to expire at the provided time
.
If the key already exists, do not update the currently set expiration.
Only set the value if this key already exists.
Only set the value if this key isn’t present.
Executes the Set operation, requesting the previous value be returned. If no change is made, None will be returned.
pub fn returning_previous_as<OtherV>(self) -> Result<Option<OtherV>, Error> where
OtherV: for<'de> Deserialize<'de>,
pub fn returning_previous_as<OtherV>(self) -> Result<Option<OtherV>, Error> where
OtherV: for<'de> Deserialize<'de>,
Executes the Set operation, requesting the previous value be returned. If no change is made, None will be returned.
Auto Trait Implementations
impl<'a, KeyValue, V> RefUnwindSafe for Builder<'a, KeyValue, V> where
KeyValue: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, KeyValue, V> UnwindSafe for Builder<'a, KeyValue, V> where
KeyValue: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more