Redirect user to authentication
This commit is contained in:
9
src/user.rs
Normal file
9
src/user.rs
Normal file
@ -0,0 +1,9 @@
|
||||
#[derive(Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct UserID(String);
|
||||
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
pub struct User {
|
||||
pub id: UserID,
|
||||
pub name: String,
|
||||
pub email: String,
|
||||
}
|
Reference in New Issue
Block a user