diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-25 12:18:34 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-25 12:18:34 -0700 |
commit | c4618dd2fb070eefcdb38bca7b92fe32da766702 (patch) | |
tree | c874372bb6574e92db1e7bb98029ee0ee186326f /rust/src/lib.rs | |
parent | a4e45f77b5431e0211337afc67ee586c553590d3 (diff) | |
download | fatcat-c4618dd2fb070eefcdb38bca7b92fe32da766702.tar.gz fatcat-c4618dd2fb070eefcdb38bca7b92fe32da766702.zip |
more external ident handling
Diffstat (limited to 'rust/src/lib.rs')
-rw-r--r-- | rust/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs index fd871f55..eff487b3 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -17,6 +17,9 @@ extern crate serde_json; #[macro_use] extern crate log; extern crate data_encoding; +extern crate regex; +#[macro_use] +extern crate lazy_static; pub mod api_helpers; pub mod api_server; @@ -39,6 +42,10 @@ mod errors { description("invalid fatcat identifier syntax") display("invalid fatcat identifier (expect 26-char base32 encoded): {}", id) } + MalformedExternalId(id: String) { + description("external identifier doesn't match required pattern") + display("external identifier doesn't match required pattern") + } } } } |