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 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UserRegistration {
16    #[serde(rename = "email")]
17    pub email: String,
18    #[serde(rename = "password")]
19    pub password: String,
20    #[serde(rename = "realName")]
21    pub real_name: String,
22}
23
24impl UserRegistration {
25    pub fn new(email: String, password: String, real_name: String) -> UserRegistration {
26        UserRegistration {
27            email,
28            password,
29            real_name,
30        }
31    }
32}
33