aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/atuin_common/api.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-12 01:54:21 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-12 01:54:21 +0200
commitbbdf38018b47328b5faa2cef635c37095045be72 (patch)
tree8983817d547551ae12508a8ae8731b622d990af4 /crates/turtle/src/atuin_common/api.rs
parentfeat(server): Make user stuff stateless (diff)
downloadatuin-bbdf38018b47328b5faa2cef635c37095045be72.zip
feat(server): Really make users stateless (with tests)
This commit also remove another load of unneeded features.
Diffstat (limited to 'crates/turtle/src/atuin_common/api.rs')
-rw-r--r--crates/turtle/src/atuin_common/api.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/crates/turtle/src/atuin_common/api.rs b/crates/turtle/src/atuin_common/api.rs
index c18db04f..0868943d 100644
--- a/crates/turtle/src/atuin_common/api.rs
+++ b/crates/turtle/src/atuin_common/api.rs
@@ -11,28 +11,6 @@ pub(crate) static ATUIN_VERSION: LazyLock<Version> =
LazyLock::new(|| Version::parse(ATUIN_CARGO_VERSION).expect("failed to parse self semver"));
#[derive(Debug, Serialize, Deserialize)]
-pub(crate) struct RegisterResponse {
- pub(crate) session: String,
-}
-
-#[derive(Debug, Serialize, Deserialize)]
-pub(crate) struct ChangePasswordRequest {
- pub(crate) current_password: String,
- pub(crate) new_password: String,
-}
-
-#[derive(Debug, Serialize, Deserialize)]
-pub(crate) struct LoginRequest {
- pub(crate) username: String,
- pub(crate) password: String,
-}
-
-#[derive(Debug, Serialize, Deserialize)]
-pub(crate) struct LoginResponse {
- pub(crate) session: String,
-}
-
-#[derive(Debug, Serialize, Deserialize)]
pub(crate) struct ErrorResponse<'a> {
pub(crate) reason: Cow<'a, str>,
}
@@ -42,8 +20,3 @@ pub(crate) struct IndexResponse {
pub(crate) homage: String,
pub(crate) version: String,
}
-
-#[derive(Debug, Serialize, Deserialize)]
-pub(crate) struct MeResponse {
- pub(crate) username: String,
-}