Skip to main content

geoengine_api_client/models/
user_registration.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct UserRegistration {
15    #[serde(rename = "email")]
16    pub email: String,
17    #[serde(rename = "password")]
18    pub password: String,
19    #[serde(rename = "realName")]
20    pub real_name: String,
21}
22
23impl UserRegistration {
24    pub fn new(email: String, password: String, real_name: String) -> UserRegistration {
25        UserRegistration {
26            email,
27            password,
28            real_name,
29        }
30    }
31}
32