fix: forgot to make fields public

This commit is contained in:
silver 2023-07-29 23:10:19 +01:00
parent f4e9ece04c
commit 3a6325c722

View file

@ -10,12 +10,12 @@ use tide::prelude::*;
#[derive(Debug, Deserialize, Serialize, sqlx::FromRow)] #[derive(Debug, Deserialize, Serialize, sqlx::FromRow)]
pub struct AccountsNew { pub struct AccountsNew {
mail: String, pub mail: String,
auth_code: String, pub auth_code: String,
date_iso: String, pub date_iso: String,
date_expiry: String, pub date_expiry: String,
name_first: String, pub name_first: String,
name_surname: String, pub name_surname: String,
} }
#[derive(Debug, Deserialize, Serialize, sqlx::FromRow)] #[derive(Debug, Deserialize, Serialize, sqlx::FromRow)]