workos 3.1.0

Official Rust SDK for the WorkOS API
Documentation
// This file is auto-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 WidgetSessionToken {
    /// The ID of the organization to scope the widget session to. Required when scopes are provided. Optional when issuing a token for user-only widgets (e.g. `UserProfile`, `UserSecurity`) that do not require organization context.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub organization_id: Option<String>,
    /// The ID of the user to issue the widget session token for.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub user_id: Option<String>,
    /// The scopes to grant the widget session.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub scopes: Option<Vec<WidgetSessionTokenScopes>>,
}