pub struct RoleInfo {
pub tag: Option<&'static str>,
pub name: &'static str,
pub color: RoleColor,
pub hidden: bool,
}Expand description
Display metadata for a role, ported from omp’s ModelRoleInfo.
Fields§
§tag: Option<&'static str>Short uppercase tag (e.g. "SMOL"), or None for custom roles.
name: &'static strHuman-readable name (e.g. "Fast").
color: RoleColorTheme color slot.
If true, the role is functional but hidden from the selector UI.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoleInfo
impl RefUnwindSafe for RoleInfo
impl Send for RoleInfo
impl Sync for RoleInfo
impl Unpin for RoleInfo
impl UnsafeUnpin for RoleInfo
impl UnwindSafe for RoleInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more