kmp-domain 0.1.6

Domain model of the Kernel Memory Protocol: aggregates, value objects, repositories and projections, with no IO
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct SnapshotSaveOptions {
    ttl_seconds: Option<u64>,
}

impl SnapshotSaveOptions {
    pub const fn new(ttl_seconds: Option<u64>) -> Self {
        Self { ttl_seconds }
    }

    pub const fn ttl_seconds(self) -> Option<u64> {
        self.ttl_seconds
    }
}