ory_client_client/models/
create_recovery_link.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 CreateRecoveryLink {
16    /// Link Expires In  The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`.
17    #[serde(rename = "expires_in", skip_serializing_if = "Option::is_none")]
18    pub expires_in: Option<String>,
19    #[serde(rename = "identity_id")]
20    pub identity_id: String,
21}
22
23impl CreateRecoveryLink {
24    pub fn new(identity_id: String) -> CreateRecoveryLink {
25        CreateRecoveryLink {
26            expires_in: None,
27            identity_id,
28        }
29    }
30}
31
32