summaryrefslogtreecommitdiff
path: root/src/generation.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-30 14:16:34 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-30 15:25:29 +0200
commit776b2c134c3096b8a7cf1742cbcda13f0527e415 (patch)
tree032ccd40e9db637df1ff68cdb46b8deda1ade27c /src/generation.rs
parent6b9553945683e2b01404673e37e8b951b32a993e (diff)
downloadobnam2-776b2c134c3096b8a7cf1742cbcda13f0527e415.tar.gz
feat: add GenerationList
Various part of Obnam will need to deal with lists of generations. Abstract this.
Diffstat (limited to 'src/generation.rs')
-rw-r--r--src/generation.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/generation.rs b/src/generation.rs
index dc9bf0c..5d04a9f 100644
--- a/src/generation.rs
+++ b/src/generation.rs
@@ -158,6 +158,7 @@ mod test {
/// A finished generation.
///
/// A generation is finished when it's on the server. It can be restored.
+#[derive(Debug, Clone)]
pub struct FinishedGeneration {
id: ChunkId,
ended: String,