ory_client_client/models/
submit_self_service_registration_flow.rs

1/*
2 * Ory APIs
3 *
4 * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. 
5 *
6 * The version of the OpenAPI document: v0.0.1-alpha.1
7 * Contact: support@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SubmitSelfServiceRegistrationFlow {
16    /// The CSRF Token
17    #[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
18    pub csrf_token: Option<String>,
19    /// Method to use  This field must be set to `password` when using the password method.
20    #[serde(rename = "method")]
21    pub method: String,
22    /// Password to sign the user up with
23    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
24    pub password: Option<String>,
25    /// The identity's traits
26    #[serde(rename = "traits", skip_serializing_if = "Option::is_none")]
27    pub traits: Option<serde_json::Value>,
28}
29
30impl SubmitSelfServiceRegistrationFlow {
31    pub fn new(method: String) -> SubmitSelfServiceRegistrationFlow {
32        SubmitSelfServiceRegistrationFlow {
33            csrf_token: None,
34            method,
35            password: None,
36            traits: None,
37        }
38    }
39}
40
41