pub struct SetRequest {
pub key: String,
pub value: String,
pub expires_s: i32,
}Expand description
A request to set a value
Fields§
§key: StringKey of the item to set
value: StringValue of the item to set
expires_s: i32Seconds after which the key will expire, 0 - no expiration
Trait Implementations§
Source§impl Clone for SetRequest
impl Clone for SetRequest
Source§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 Message for SetRequest
impl Message for SetRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for SetRequest
impl PartialEq for SetRequest
impl StructuralPartialEq for SetRequest
Auto Trait Implementations§
impl Freeze for SetRequest
impl RefUnwindSafe for SetRequest
impl Send for SetRequest
impl Sync for SetRequest
impl Unpin for SetRequest
impl UnsafeUnpin for SetRequest
impl UnwindSafe for SetRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more