id: added id create for handling ID needs
This commit is contained in:
parent
a5eafc49f5
commit
7851fdae1e
3 changed files with 84 additions and 0 deletions
12
crates/id/src/lib.rs
Normal file
12
crates/id/src/lib.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
mod user;
|
||||
|
||||
// error
|
||||
#[derive(thiserror::Error)]
|
||||
// the rest
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
#[error("Invalid {0} ID")]
|
||||
Invalid(&'static str),
|
||||
}
|
||||
|
||||
pub use user::UserID;
|
||||
Loading…
Add table
Add a link
Reference in a new issue