summaryrefslogtreecommitdiffstats
path: root/rust/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-14 19:57:50 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-14 19:57:50 -0800
commite095a6587c1915941d4ee4d4742418b31103ae46 (patch)
treee79d62c24b8d4666076e6aebaf3b14f3dec11860 /rust/src/lib.rs
parent546b5afcf91992d26437b47107eb9433cb1656bb (diff)
downloadfatcat-e095a6587c1915941d4ee4d4742418b31103ae46.tar.gz
fatcat-e095a6587c1915941d4ee4d4742418b31103ae46.zip
enforce some controlled vocabularies in API
Diffstat (limited to 'rust/src/lib.rs')
-rw-r--r--rust/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index 4b227392..99035b85 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -50,6 +50,10 @@ pub mod errors {
description("external identifier doesn't match required pattern")
display("external identifier doesn't match required pattern")
}
+ NotInControlledVocabulary(word: String) {
+ description("word or type not correct for controlled vocabulary")
+ display("word or type not correct for controlled vocabulary")
+ }
EditgroupAlreadyAccepted(id: String) {
description("editgroup was already accepted")
display("attempted to accept an editgroup which was already accepted: {}", id)