ory-client-client 0.0.1-alpha.1

SDK Client for ORY Keto
Documentation
/*
 * Ory APIs
 *
 * 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. 
 *
 * The version of the OpenAPI document: v0.0.1-alpha.1
 * Contact: support@ory.sh
 * Generated by: https://openapi-generator.tech
 */

/// AuthenticateOkBody : AuthenticateOKBody authenticate o k body



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AuthenticateOkBody {
    /// An opaque token used to authenticate a user after a successful login
    #[serde(rename = "IdentityToken")]
    pub identity_token: String,
    /// The status of the authentication
    #[serde(rename = "Status")]
    pub status: String,
}

impl AuthenticateOkBody {
    /// AuthenticateOKBody authenticate o k body
    pub fn new(identity_token: String, status: String) -> AuthenticateOkBody {
        AuthenticateOkBody {
            identity_token,
            status,
        }
    }
}