19 lines
585 B
Rust
19 lines
585 B
Rust
/// The register form, one field per `RegisterRequest` field. Every one of them
|
|
/// is optional at this layer: the client does not validate either, it trims and
|
|
/// posts, and the backend answers with what is wrong.
|
|
#[derive(serde::Deserialize)]
|
|
pub(crate) struct RegisterInput {
|
|
#[serde(default)]
|
|
pub username: String,
|
|
#[serde(default)]
|
|
pub email: String,
|
|
#[serde(default)]
|
|
pub password: String,
|
|
#[serde(default)]
|
|
pub password_confirmation: String,
|
|
#[serde(default)]
|
|
pub timezone: String,
|
|
#[serde(default)]
|
|
pub phone_country: String,
|
|
}
|