pub struct WorkspaceRoles {
pub roles: Vec<EffectiveRole>,
pub overrides: HashMap<String, RoleOverride>,
pub custom_roles_enabled: bool,
pub my_role: Option<Option<String>>,
pub my_capabilities: Box<RoleCapabilities>,
}Fields§
§roles: Vec<EffectiveRole>§overrides: HashMap<String, RoleOverride>A workspace’s overrides keyed by role name; a name the instance does not define adds a workspace-only role (EE).
custom_roles_enabled: boolWhether this workspace may add roles of its own.
my_role: Option<Option<String>>§my_capabilities: Box<RoleCapabilities>Implementations§
Source§impl WorkspaceRoles
impl WorkspaceRoles
pub fn new( roles: Vec<EffectiveRole>, overrides: HashMap<String, RoleOverride>, custom_roles_enabled: bool, my_capabilities: RoleCapabilities, ) -> WorkspaceRoles
Trait Implementations§
Source§impl Clone for WorkspaceRoles
impl Clone for WorkspaceRoles
Source§impl Debug for WorkspaceRoles
impl Debug for WorkspaceRoles
Source§impl Default for WorkspaceRoles
impl Default for WorkspaceRoles
Source§impl<'de> Deserialize<'de> for WorkspaceRoles
impl<'de> Deserialize<'de> for WorkspaceRoles
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkspaceRoles
impl PartialEq for WorkspaceRoles
Source§impl Serialize for WorkspaceRoles
impl Serialize for WorkspaceRoles
impl StructuralPartialEq for WorkspaceRoles
Auto Trait Implementations§
impl Freeze for WorkspaceRoles
impl RefUnwindSafe for WorkspaceRoles
impl Send for WorkspaceRoles
impl Sync for WorkspaceRoles
impl Unpin for WorkspaceRoles
impl UnsafeUnpin for WorkspaceRoles
impl UnwindSafe for WorkspaceRoles
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