ory_client_client/models/
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 RegistrationFlow {
16    /// and so on.
17    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
18    pub active: Option<String>,
19    /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
20    #[serde(rename = "expires_at")]
21    pub expires_at: String,
22    #[serde(rename = "id")]
23    pub id: String,
24    /// IssuedAt is the time (UTC) when the flow occurred.
25    #[serde(rename = "issued_at")]
26    pub issued_at: String,
27    /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
28    #[serde(rename = "request_url")]
29    pub request_url: String,
30    /// The flow type can either be `api` or `browser`.
31    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
32    pub _type: Option<String>,
33    #[serde(rename = "ui")]
34    pub ui: Box<crate::models::UiContainer>,
35}
36
37impl RegistrationFlow {
38    pub fn new(expires_at: String, id: String, issued_at: String, request_url: String, ui: crate::models::UiContainer) -> RegistrationFlow {
39        RegistrationFlow {
40            active: None,
41            expires_at,
42            id,
43            issued_at,
44            request_url,
45            _type: None,
46            ui: Box::new(ui),
47        }
48    }
49}
50
51