Struct wasmcloud_interface_keyvalue::SetRequest
source · pub struct SetRequest {
pub key: String,
pub value: String,
pub expires: u32,
}Fields§
§key: Stringthe key name to change (or create)
value: Stringthe new value
expires: u32expiration time in seconds 0 for no expiration
Trait Implementations§
source§impl Clone for SetRequest
impl Clone for SetRequest
source§fn clone(&self) -> SetRequest
fn clone(&self) -> SetRequest
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 SetRequest
impl Debug for SetRequest
source§impl Default for SetRequest
impl Default for SetRequest
source§fn default() -> SetRequest
fn default() -> SetRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetRequest
impl<'de> Deserialize<'de> for SetRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SetRequest> for SetRequest
impl PartialEq<SetRequest> for SetRequest
source§fn eq(&self, other: &SetRequest) -> bool
fn eq(&self, other: &SetRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.