pub struct CacheJson<T> {
pub duration: Duration,
pub data: T,
}
Fields§
§duration: Duration
§data: T
Trait Implementations§
Source§impl<T> IntoResponse for CacheJson<T>where
T: Serialize,
impl<T> IntoResponse for CacheJson<T>where
T: Serialize,
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<T> Freeze for CacheJson<T>where
T: Freeze,
impl<T> RefUnwindSafe for CacheJson<T>where
T: RefUnwindSafe,
impl<T> Send for CacheJson<T>where
T: Send,
impl<T> Sync for CacheJson<T>where
T: Sync,
impl<T> Unpin for CacheJson<T>where
T: Unpin,
impl<T> UnwindSafe for CacheJson<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