workos 1.0.0

Official Rust SDK for the WorkOS API
Documentation
// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PasswordSessionAuthenticateRequest {
    /// The client ID of the application.
    pub client_id: String,
    /// The client secret of the application.
    pub client_secret: crate::SecretString,
    pub grant_type: String,
    /// The user's email address.
    pub email: String,
    /// The user's password.
    pub password: crate::SecretString,
    /// An invitation token to accept during authentication.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub invitation_token: Option<crate::SecretString>,
    /// The IP address of the user's request.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub ip_address: Option<String>,
    /// A unique identifier for the device.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub device_id: Option<String>,
    /// The user agent string from the user's browser.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub user_agent: Option<String>,
}