diff options
| author | Yannick Ulrich <yannick.ulrich@durham.ac.uk> | 2023-05-16 22:00:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-16 22:00:59 +0100 |
| commit | 7b9dea72e3d2435f75825e8e66a04285332d5aa5 (patch) | |
| tree | e2b9ae2f8df86105b09547a55dc7ac455a55c0c8 /atuin-common/src/api.rs | |
| parent | Include bash preexec warning (#983) (diff) | |
| download | atuin-7b9dea72e3d2435f75825e8e66a04285332d5aa5.zip | |
feat: add delete account option (attempt 2) (#980)
* Added DELETE register endpoint
* Added remove function to database
* Added unregister to client
* Updated docs
* Renamed functions
* Reformatting
* Used execute instead of fetch in delete_user
Diffstat (limited to 'atuin-common/src/api.rs')
| -rw-r--r-- | atuin-common/src/api.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/atuin-common/src/api.rs b/atuin-common/src/api.rs index e9809329..2eff464e 100644 --- a/atuin-common/src/api.rs +++ b/atuin-common/src/api.rs @@ -20,6 +20,9 @@ pub struct RegisterResponse { } #[derive(Debug, Serialize, Deserialize)] +pub struct DeleteUserResponse {} + +#[derive(Debug, Serialize, Deserialize)] pub struct LoginRequest { pub username: String, pub password: String, |
