pub struct SetRequest<T>where
T: Serialize + DeserializeOwned,{
pub key: String,
pub value: T,
pub options: Option<SetItemOptions>,
}
Expand description
Request to set an item in the cache
Fields§
§key: String
The key to store the value under
value: T
The value to store
options: Option<SetItemOptions>
Options for this cache item
Trait Implementations§
Source§impl<T> Debug for SetRequest<T>
impl<T> Debug for SetRequest<T>
Source§impl<'de, T> Deserialize<'de> for SetRequest<T>where
T: Serialize + DeserializeOwned,
impl<'de, T> Deserialize<'de> for SetRequest<T>where
T: Serialize + DeserializeOwned,
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<T> Serialize for SetRequest<T>
impl<T> Serialize for SetRequest<T>
Auto Trait Implementations§
impl<T> Freeze for SetRequest<T>where
T: Freeze,
impl<T> RefUnwindSafe for SetRequest<T>where
T: RefUnwindSafe,
impl<T> Send for SetRequest<T>where
T: Send,
impl<T> Sync for SetRequest<T>where
T: Sync,
impl<T> Unpin for SetRequest<T>where
T: Unpin,
impl<T> UnwindSafe for SetRequest<T>where
T: UnwindSafe,
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