[][src]Struct tea_codec::keyvalue::SetRequest

pub struct SetRequest {
    pub key: String,
    pub value: Vec<u8>,
    pub expires_s: i32,
}

A request to set a value

Fields

key: String

Key of the item to set

value: Vec<u8>

Value of the item to set

expires_s: i32

Seconds after which the key will expire, 0 - no expiration

Trait Implementations

impl Debug for SetRequest[src]

impl<'de> Deserialize<'de> for SetRequest[src]

impl PartialEq<SetRequest> for SetRequest[src]

impl Serialize for SetRequest[src]

impl StructuralPartialEq for SetRequest[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.