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 CreateUserInviteOptions {
    /// The email address of the recipient.
    pub email: String,
    /// The ID of the [organization](https://workos.com/docs/reference/organization) that the recipient will join.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub organization_id: Option<String>,
    /// The [role](https://workos.com/docs/authkit/roles) that the recipient will receive when they join the organization in the invitation.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub role_slug: Option<String>,
    /// How many days the invitations will be valid for. Must be between 1 and 30 days. Defaults to 7 days if not specified.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub expires_in_days: Option<i64>,
    /// The ID of the [user](https://workos.com/docs/reference/authkit/user) who invites the recipient. The invitation email will mention the name of this user.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub inviter_user_id: Option<String>,
    /// The locale to use when rendering the invitation email. See [supported locales](https://workos.com/docs/authkit/hosted-ui/localization).
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub locale: Option<CreateUserInviteOptionsLocale>,
}