ezidam/crates/id/src/lib.rs

21 lines
351 B
Rust

mod app;
mod key;
mod role;
mod user;
mod username;
// error
#[derive(thiserror::Error)]
// the rest
#[derive(Debug)]
pub enum Error {
#[error("Invalid {0} ID")]
Invalid(&'static str),
}
pub use app::AppID;
pub use key::KeyID;
pub use role::RoleID;
pub use user::UserID;
pub use username::Username;
pub use username::INVALID_USERNAME_ERROR;