1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct SelfServiceRegistrationFlow {
#[serde(rename = "active", skip_serializing_if = "Option::is_none")]
pub active: Option<crate::models::IdentityCredentialsType>,
#[serde(rename = "expires_at")]
pub expires_at: String,
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "issued_at")]
pub issued_at: String,
#[serde(rename = "request_url")]
pub request_url: String,
#[serde(rename = "return_to", skip_serializing_if = "Option::is_none")]
pub return_to: Option<String>,
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<String>,
#[serde(rename = "ui")]
pub ui: Box<crate::models::UiContainer>,
}
impl SelfServiceRegistrationFlow {
pub fn new(expires_at: String, id: String, issued_at: String, request_url: String, ui: crate::models::UiContainer) -> SelfServiceRegistrationFlow {
SelfServiceRegistrationFlow {
active: None,
expires_at,
id,
issued_at,
request_url,
return_to: None,
_type: None,
ui: Box::new(ui),
}
}
}