printnanny_api_client/models/
user_request.rs

1/*
2 * printnanny-api-client
3 *
4 * Official API client library for printnanny.ai
5 *
6 * The version of the OpenAPI document: 0.135.1
7 * Contact: leigh@printnanny.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct UserRequest {
16    #[serde(rename = "email")]
17    pub email: String,
18    #[serde(rename = "first_name", skip_serializing_if = "Option::is_none")]
19    pub first_name: Option<String>,
20    #[serde(rename = "last_name", skip_serializing_if = "Option::is_none")]
21    pub last_name: Option<String>,
22}
23
24impl UserRequest {
25    pub fn new(email: String) -> UserRequest {
26        UserRequest {
27            email,
28            first_name: None,
29            last_name: None,
30        }
31    }
32}
33
34