1 2 3 4 5 6 7 8 9
use serde::{Deserialize, Serialize}; use typescript_definitions::TypeScriptify; #[derive(Serialize, Deserialize, TypeScriptify)] #[serde(rename_all = "camelCase")] pub struct LoginDto { pub username: String, pub password: String, }
1 2 3 4 5 6 7 8 9
use serde::{Deserialize, Serialize}; use typescript_definitions::TypeScriptify; #[derive(Serialize, Deserialize, TypeScriptify)] #[serde(rename_all = "camelCase")] pub struct LoginDto { pub username: String, pub password: String, }