Skip to main content

dtz_identity/models/
auth_request.rs

1/*
2 * DTZ Identity
3 *
4 * a generated client for the DTZ Identity API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuthRequest {
17    #[serde(rename = "username")]
18    pub username: String,
19    #[serde(rename = "password")]
20    pub password: String,
21    #[serde(rename = "scopes", skip_serializing_if = "Option::is_none")]
22    pub scopes: Option<Vec<String>>,
23}
24
25impl AuthRequest {
26    pub fn new(username: String, password: String) -> AuthRequest {
27        AuthRequest {
28            username,
29            password,
30            scopes: None,
31        }
32    }
33}
34