ory_kratos_client/models/
update_registration_flow_with_password_method.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateRegistrationFlowWithPasswordMethod {
17 #[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
19 pub csrf_token: Option<String>,
20 #[serde(rename = "method")]
22 pub method: String,
23 #[serde(rename = "password")]
25 pub password: String,
26 #[serde(rename = "traits")]
28 pub traits: serde_json::Value,
29 #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")]
31 pub transient_payload: Option<serde_json::Value>,
32}
33
34impl UpdateRegistrationFlowWithPasswordMethod {
35 pub fn new(method: String, password: String, traits: serde_json::Value) -> UpdateRegistrationFlowWithPasswordMethod {
37 UpdateRegistrationFlowWithPasswordMethod {
38 csrf_token: None,
39 method,
40 password,
41 traits,
42 transient_payload: None,
43 }
44 }
45}
46