diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-04-22 05:01:00 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-04-22 05:01:00 +0000 |
commit | 0b6adba069cd1300079c822b14832d690595cfb4 (patch) | |
tree | d5d77d43d9658e780f00c4fa27b3c7b2dad77b02 /src/generation.rs | |
parent | 5f7122928c2d21816b2d10d0b681dc6776433ccf (diff) | |
parent | d2cc05cd7a0997c16687642d9a6814a506711e41 (diff) | |
download | obnam2-0b6adba069cd1300079c822b14832d690595cfb4.tar.gz |
Merge branch 'liw/gen-size' into 'main'
show SQLite file size
Closes #29
See merge request obnam/obnam!230
Diffstat (limited to 'src/generation.rs')
-rw-r--r-- | src/generation.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/generation.rs b/src/generation.rs index 0a0fc77..180efbe 100644 --- a/src/generation.rs +++ b/src/generation.rs @@ -8,11 +8,12 @@ use crate::fsentry::FilesystemEntry; use crate::genmeta::{GenerationMeta, GenerationMetaError}; use crate::label::LabelChecksumKind; use crate::schema::{SchemaVersion, VersionComponent}; +use serde::Serialize; use std::fmt; use std::path::{Path, PathBuf}; /// An identifier for a generation. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Serialize)] pub struct GenId { id: ChunkId, } |