ory_client_client/models/
submit_self_service_login_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 SubmitSelfServiceLoginFlow {
16    /// Sending the anti-csrf token is only required for browser login flows.
17    #[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
18    pub csrf_token: Option<String>,
19    /// Method should be set to \"password\" when logging in using the identifier and password strategy.
20    #[serde(rename = "method", skip_serializing_if = "Option::is_none")]
21    pub method: Option<String>,
22    /// The user's password.
23    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
24    pub password: Option<String>,
25    /// Identifier is the email or username of the user trying to log in.
26    #[serde(rename = "password_identifier", skip_serializing_if = "Option::is_none")]
27    pub password_identifier: Option<String>,
28}
29
30impl SubmitSelfServiceLoginFlow {
31    pub fn new() -> SubmitSelfServiceLoginFlow {
32        SubmitSelfServiceLoginFlow {
33            csrf_token: None,
34            method: None,
35            password: None,
36            password_identifier: None,
37        }
38    }
39}
40
41