introduce TaskListIdentifier

This commit is contained in:
ad hoc
2022-05-16 20:16:23 +02:00
parent aa50acb031
commit 5a5066023b
4 changed files with 54 additions and 18 deletions

View File

@ -78,6 +78,12 @@ pub struct Task {
/// then this is None
// TODO: when next forward breaking dumps, it would be a good idea to move this field inside of
// the TaskContent.
#[cfg_attr(
test,
proptest(
strategy = "proptest::option::weighted(proptest::option::Probability::new(0.99), IndexUid::arbitrary())"
)
)]
pub index_uid: Option<IndexUid>,
pub content: TaskContent,
pub events: Vec<TaskEvent>,
@ -165,6 +171,10 @@ pub enum TaskContent {
IndexUpdate {
primary_key: Option<String>,
},
Dump {
#[cfg_attr(test, proptest(value = "PathBuf::from(\".\")"))]
path: PathBuf,
},
}
#[cfg(test)]