aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/entity_crud.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/entity_crud.rs')
-rw-r--r--rust/src/entity_crud.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs
index 3d9b5165..e54973da 100644
--- a/rust/src/entity_crud.rs
+++ b/rust/src/entity_crud.rs
@@ -104,6 +104,7 @@ pub struct ExpandFlags {
pub container: bool,
pub releases: bool,
pub creators: bool,
+ pub editors: bool,
}
impl FromStr for ExpandFlags {
@@ -123,6 +124,7 @@ impl ExpandFlags {
container: list.contains(&"container"),
releases: list.contains(&"releases"),
creators: list.contains(&"creators"),
+ editors: list.contains(&"editors"),
}
}
pub fn none() -> ExpandFlags {
@@ -133,6 +135,7 @@ impl ExpandFlags {
container: false,
releases: false,
creators: false,
+ editors: false,
}
}
}
@@ -150,6 +153,7 @@ fn test_expand_flags() {
"other_thing",
"releases",
"creators",
+ "editors",
]);
assert!(
all == ExpandFlags {
@@ -159,6 +163,7 @@ fn test_expand_flags() {
container: true,
releases: true,
creators: true
+ editors: true
}
);
assert!(ExpandFlags::from_str("").unwrap().files == false);
@@ -176,6 +181,7 @@ fn test_expand_flags() {
container: true,
releases: true,
creators: true
+ editors: true
}
);
}