username: type to parse username

This commit is contained in:
Philippe Loctaux 2023-05-04 22:47:11 +02:00
parent 0e77f7be5e
commit bdd5eca9f1
7 changed files with 119 additions and 24 deletions

View file

@ -1,6 +1,7 @@
mod app;
mod key;
mod user;
mod username;
// error
#[derive(thiserror::Error)]
@ -14,3 +15,5 @@ pub enum Error {
pub use app::AppID;
pub use key::KeyID;
pub use user::UserID;
pub use username::Username;
pub use username::INVALID_USERNAME_ERROR;