1 2 3 4 5 6 7 8 9 10 11 12
use crate::domain::vo::{EntryId, LifeTime}; pub(crate) struct Entry { id: EntryId, life_time: LifeTime, } impl Entry { pub fn new(id: EntryId, life_time: LifeTime) -> Self { Self { id, life_time } } }