workos 2.4.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
// 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};
/// The origin of the role assignment.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct UserRoleAssignmentSource {
    /// Whether the role was assigned directly or derived from a group.
    #[serde(rename = "type")]
    pub type_: UserRoleAssignmentSourceType,
    /// The ID of the group role assignment the role was derived from, or null if direct.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub group_role_assignment_id: Option<String>,
}