intrepid-model 0.1.6

Manage complex async business logic with ease
Documentation
1
2
3
4
5
6
7
8
use super::CacheRecord;

/// A trait for types that can be converted into a cache record. Any given
/// type that implements this trait can be inserted into a cache.
pub trait IntoCache {
    /// Consume the type, producing a [`CacheRecord`]
    fn into_cache(self) -> CacheRecord;
}