cyrtophora

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 911f6df79fe9097ea176547c68cb8e7eaa663971
parent aaa90528383aa5dde1ded842fa7d0571cd31e8f6
Author: Jackson G. Kaindume <seestem@merely.tech>
Date:   Mon, 29 Aug 2022 13:45:23 +0200

[phora] Deserialize, Serialize Account registration data

Diffstat:
Mphora/src/data.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/phora/src/data.rs b/phora/src/data.rs @@ -1,8 +1,8 @@ use crate::validate::{Validate, ValidationError}; -use serde::Deserialize; +use serde::{Deserialize, Serialize}; /// User registration Data -#[derive(Deserialize)] +#[derive(Deserialize, Serialize)] pub struct AccountRegistration { pub username: String, pub password: String,