forked from Roflin/gamenight
40 lines
996 B
Rust
40 lines
996 B
Rust
/*
|
|
* Gamenight
|
|
*
|
|
* Api specifaction for a Gamenight server
|
|
*
|
|
* The version of the OpenAPI document: 1.0
|
|
* Contact: dennis@brentj.es
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct Registration {
|
|
#[serde(rename = "username")]
|
|
pub username: String,
|
|
#[serde(rename = "email")]
|
|
pub email: String,
|
|
#[serde(rename = "password")]
|
|
pub password: String,
|
|
#[serde(rename = "password_repeat")]
|
|
pub password_repeat: String,
|
|
#[serde(rename = "registration_token")]
|
|
pub registration_token: String,
|
|
}
|
|
|
|
impl Registration {
|
|
pub fn new(username: String, email: String, password: String, password_repeat: String, registration_token: String) -> Registration {
|
|
Registration {
|
|
username,
|
|
email,
|
|
password,
|
|
password_repeat,
|
|
registration_token,
|
|
}
|
|
}
|
|
}
|
|
|