pub struct SetItemOptions {
pub ttl: Option<u64>,
pub compress: Option<bool>,
pub compression_method: Option<CompressionMethod>,
}Expand description
Options for setting an item in the cache
Fields§
§ttl: Option<u64>Time-to-live in seconds
compress: Option<bool>Whether to compress the data before storing
compression_method: Option<CompressionMethod>Compression method to use (overrides default)
Trait Implementations§
Source§impl Clone for SetItemOptions
impl Clone for SetItemOptions
Source§fn clone(&self) -> SetItemOptions
fn clone(&self) -> SetItemOptions
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 SetItemOptions
impl Debug for SetItemOptions
Source§impl<'de> Deserialize<'de> for SetItemOptions
impl<'de> Deserialize<'de> for SetItemOptions
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
Auto Trait Implementations§
impl Freeze for SetItemOptions
impl RefUnwindSafe for SetItemOptions
impl Send for SetItemOptions
impl Sync for SetItemOptions
impl Unpin for SetItemOptions
impl UnwindSafe for SetItemOptions
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