Structuring

This commit is contained in:
2026-02-23 02:02:22 +01:00
parent 56fb719cca
commit 7b532981a1
6 changed files with 746 additions and 31 deletions
+2 -8
View File
@@ -1,13 +1,7 @@
use serde::{Deserialize, Serialize};
use session_rs::Method;
#[derive(Debug, Serialize, Deserialize)]
pub struct AuthResponse {
pub cloak: String,
pub hat: String,
pub cloaks: Vec<String>,
pub hats: Vec<String>,
}
use crate::user::User;
#[derive(Debug, Serialize, Deserialize)]
pub struct Auth;
@@ -15,7 +9,7 @@ pub struct Auth;
impl Method for Auth {
const NAME: &'static str = "auth";
type Request = String;
type Response = AuthResponse;
type Response = User;
type Error = String;
}