Skip to content

Commit 5f8da86

Browse files
Added ignore_domain_restrictions to create_user (#69)
1 parent 25e8a08 commit 5f8da86

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

src/models/create_user_request.rs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
55
*
66
* The version of the OpenAPI document: 0.1.0
7-
*
7+
*
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
12-
13-
14-
use std::collections::HashMap;
1511
use serde_json::Value;
12+
use std::collections::HashMap;
1613

1714
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
1815
pub struct CreateUserRequest {
@@ -32,10 +29,19 @@ pub struct CreateUserRequest {
3229
pub last_name: Option<String>,
3330
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
3431
pub properties: Option<HashMap<String, Value>>,
32+
#[serde(
33+
rename = "ignore_domain_restrictions",
34+
skip_serializing_if = "Option::is_none"
35+
)]
36+
pub ignore_domain_restrictions: Option<bool>,
3537
}
3638

3739
impl CreateUserRequest {
38-
pub fn new(email: String, email_confirmed: bool, send_email_to_confirm_email_address: bool) -> CreateUserRequest {
40+
pub fn new(
41+
email: String,
42+
email_confirmed: bool,
43+
send_email_to_confirm_email_address: bool,
44+
) -> CreateUserRequest {
3945
CreateUserRequest {
4046
email,
4147
email_confirmed,
@@ -45,8 +51,7 @@ impl CreateUserRequest {
4551
first_name: None,
4652
last_name: None,
4753
properties: None,
54+
ignore_domain_restrictions: None,
4855
}
4956
}
5057
}
51-
52-

0 commit comments

Comments
 (0)