ory_client_client/models/
authenticate_ok_body.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/// AuthenticateOkBody : AuthenticateOKBody authenticate o k body
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuthenticateOkBody {
17    /// An opaque token used to authenticate a user after a successful login
18    #[serde(rename = "IdentityToken")]
19    pub identity_token: String,
20    /// The status of the authentication
21    #[serde(rename = "Status")]
22    pub status: String,
23}
24
25impl AuthenticateOkBody {
26    /// AuthenticateOKBody authenticate o k body
27    pub fn new(identity_token: String, status: String) -> AuthenticateOkBody {
28        AuthenticateOkBody {
29            identity_token,
30            status,
31        }
32    }
33}
34
35