printnanny_api_client/models/
email_auth_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/// EmailAuthRequest : Abstract class that returns a callback token based on the field given Returns a token if valid, None or a message if not.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct EmailAuthRequest {
17    #[serde(rename = "email")]
18    pub email: String,
19}
20
21impl EmailAuthRequest {
22    /// Abstract class that returns a callback token based on the field given Returns a token if valid, None or a message if not.
23    pub fn new(email: String) -> EmailAuthRequest {
24        EmailAuthRequest {
25            email,
26        }
27    }
28}
29
30