Implement a first version of the snapshots

This commit is contained in:
Kerollmops 2022-10-25 14:09:01 +02:00 committed by Clément Renault
parent c063f154fb
commit eec43ec953
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 92 additions and 11 deletions

View file

@ -62,11 +62,9 @@ impl Task {
}
/// Return the content-uuid if there is one
pub fn content_uuid(&self) -> Option<&Uuid> {
pub fn content_uuid(&self) -> Option<Uuid> {
match self.kind {
KindWithContent::DocumentAdditionOrUpdate { ref content_file, .. } => {
Some(content_file)
}
KindWithContent::DocumentAdditionOrUpdate { content_file, .. } => Some(content_file),
KindWithContent::DocumentDeletion { .. }
| KindWithContent::DocumentClear { .. }
| KindWithContent::SettingsUpdate { .. }