Skip to main content

ory_kratos_client/models/
identity_credentials_code_address.rs

1/*
2 * Ory Identities API
3 *
4 * This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more. 
5 *
6 * The version of the OpenAPI document: v26.2.0
7 * Contact: office@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IdentityCredentialsCodeAddress {
16    /// The address for this code
17    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
18    pub address: Option<String>,
19    #[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
20    pub channel: Option<String>,
21}
22
23impl IdentityCredentialsCodeAddress {
24    pub fn new() -> IdentityCredentialsCodeAddress {
25        IdentityCredentialsCodeAddress {
26            address: None,
27            channel: None,
28        }
29    }
30}
31