// 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>,
}