/*
 * Pescheck API
 *
 * Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
 *
 * The version of the OpenAPI document: 2.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CustomTokenObtainPair : Custom JWT serializer that includes organization information in the token.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CustomTokenObtainPair {
    #[serde(rename = "email")]
    pub email: String,
    #[serde(rename = "password")]
    pub password: String,
}

impl CustomTokenObtainPair {
    /// Custom JWT serializer that includes organization information in the token.
    pub fn new(email: String, password: String) -> CustomTokenObtainPair {
        CustomTokenObtainPair {
            email,
            password,
        }
    }
}

