workos 1.0.0

Official Rust SDK for the WorkOS API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 WidgetSessionToken {
    /// The ID of the organization to scope the widget session to.
    pub organization_id: 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>>,
}