一个小细节,需要注意:
#[derive(Debug, Deserialize, Serialize)]
pub struct User {
pub account: String,
}
pub async fn login(
Extension(state): ExtensionArcAppState,
Json(user): JsonUser,
) - impl IntoResponse {
let token = format!(Received JSON: {:?}, user);
Res::wi