From bbdf38018b47328b5faa2cef635c37095045be72 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 12 Jun 2026 01:54:21 +0200 Subject: feat(server): Really make users stateless (with tests) This commit also remove another load of unneeded features. --- crates/turtle/src/atuin_common/api.rs | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'crates/turtle/src/atuin_common/api.rs') 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 @@ -10,28 +10,6 @@ pub(crate) static ATUIN_CARGO_VERSION: &str = env!("CARGO_PKG_VERSION"); pub(crate) static ATUIN_VERSION: LazyLock = 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, -} -- cgit v1.3.1