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
55
56
57
58
59
60
61
62
63
64
65
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "method")]
pub enum SubmitSelfServiceSettingsFlowBody {
#[serde(rename="oidc")]
SubmitSelfServiceSettingsFlowWithOidcMethodBody {
#[serde(rename = "flow", skip_serializing_if = "Option::is_none")]
flow: Option<String>,
#[serde(rename = "link", skip_serializing_if = "Option::is_none")]
link: Option<String>,
#[serde(rename = "traits", skip_serializing_if = "Option::is_none")]
traits: Option<serde_json::Value>,
#[serde(rename = "unlink", skip_serializing_if = "Option::is_none")]
unlink: Option<String>,
},
#[serde(rename="password")]
SubmitSelfServiceSettingsFlowWithPasswordMethodBody {
#[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
csrf_token: Option<String>,
#[serde(rename = "password")]
password: String,
},
#[serde(rename="profile")]
SubmitSelfServiceSettingsFlowWithProfileMethodBody {
#[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
csrf_token: Option<String>,
#[serde(rename = "traits")]
traits: serde_json::Value,
},
#[serde(rename="totp")]
SubmitSelfServiceSettingsFlowWithTotpMethodBody {
#[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
csrf_token: Option<String>,
#[serde(rename = "totp_code", skip_serializing_if = "Option::is_none")]
totp_code: Option<String>,
#[serde(rename = "totp_unlink", skip_serializing_if = "Option::is_none")]
totp_unlink: Option<bool>,
},
}