printnanny_api_client/models/email_auth.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/// EmailAuth : 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 EmailAuth {
17 #[serde(rename = "email")]
18 pub email: String,
19}
20
21impl EmailAuth {
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) -> EmailAuth {
24 EmailAuth {
25 email,
26 }
27 }
28}
29
30