use super::{PlatformGrantScope, PlatformRoleId};
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct PlatformRoleAssignment {
pub role: PlatformRoleId,
pub scope: PlatformGrantScope,
}
impl PlatformRoleAssignment {
pub fn new(role: PlatformRoleId, scope: PlatformGrantScope) -> Self {
Self { role, scope }
}
}