ory_client_client/models/
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 RecoveryLink {
16    /// Recovery Link Expires At  The timestamp when the recovery link expires.
17    #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")]
18    pub expires_at: Option<String>,
19    /// Recovery Link  This link can be used to recover the account.
20    #[serde(rename = "recovery_link")]
21    pub recovery_link: String,
22}
23
24impl RecoveryLink {
25    pub fn new(recovery_link: String) -> RecoveryLink {
26        RecoveryLink {
27            expires_at: None,
28            recovery_link,
29        }
30    }
31}
32
33