ory_client_client/models/recovery_address.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 RecoveryAddress {
16 #[serde(rename = "id")]
17 pub id: String,
18 #[serde(rename = "value")]
19 pub value: String,
20 #[serde(rename = "via")]
21 pub via: String,
22}
23
24impl RecoveryAddress {
25 pub fn new(id: String, value: String, via: String) -> RecoveryAddress {
26 RecoveryAddress {
27 id,
28 value,
29 via,
30 }
31 }
32}
33
34