renamed credentialtype to match json naming conventions

This commit is contained in:
Franklin 2022-08-26 14:18:00 -04:00
parent 3d363e81ac
commit d8e899e4f2
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ pub struct UserForCreationDto{
#[serde(default = "get_default_app")]
pub app: String,
pub credential: String,
#[serde(rename = "credentialType")]
pub credential_type: CredentialType,
pub password: String,
pub name: String
@ -16,6 +17,7 @@ pub struct UserForLoginDto{
#[serde(default = "get_default_app")]
pub app: String,
pub credential: String,
#[serde(rename = "credentialType")]
pub credential_type: CredentialType,
pub password: String
}