diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-09-13 12:49:15 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-13 12:49:15 +0000 |
| commit | ce62e3bac6a8acea555731d6222028c511dd9019 (patch) | |
| tree | 1f24ef946d8d618ec554129c9a1b4061b3a5a3de /src/models | |
| parent | 9f7571078ac7fbffe1ca343e245f41646b907bc9 (diff) | |
Drop user creation
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/user.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/models/user.rs b/src/models/user.rs index 55abc97..ba2df8f 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -28,14 +28,6 @@ pub struct UserList { is_staff: Option<bool>, } -/// Payload used for user creation -#[derive(Deserialize)] -pub struct UserCreate { - pub email: String, - pub username: String, - pub password: String, -} - impl User { /// By default an user has id = 0. It is not created yet pub fn new(email: String, username: String, password: String) -> Self { |
