summaryrefslogtreecommitdiff
path: root/src/backup_run.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-09 09:40:59 +0300
committerLars Wirzenius <liw@liw.fi>2022-04-16 09:06:05 +0300
commit82ff782fe85c84c10f1f18c9bd5c2b017bc2f240 (patch)
treedee4767299a179067b9b54d557e96f95af88801c /src/backup_run.rs
parentd9b72ffa5485f3c253da22f09ff0a7090de7aa37 (diff)
downloadobnam2-82ff782fe85c84c10f1f18c9bd5c2b017bc2f240.tar.gz
feat! change how chunk labels are serialized
Serialized labels now start with a type prefix: a character that says what type of label it is. This isn't strictly required: we _can_ just decide to always use a single type of checksum for all chunks in one backup, for one client, or in the whole repository. However, if it's ever possible to have more than one type, it helps debugging if every checksum, when serialized, is explicit about its type. Change things to use the new serialize method instead of the Display trait for Label. We're primarily serializing labels so they can be stored in a database, and used in URLs, only secondarily showing them to users. Sponsored-by: author
Diffstat (limited to 'src/backup_run.rs')
0 files changed, 0 insertions, 0 deletions