pub struct RoleAssignment(pub Own);Tuple Fields§
§0: OwnImplementations§
Source§impl RoleAssignment
impl RoleAssignment
pub fn create<Y: SystemApi<E>, E: SystemApiError, R: Into<OwnerRoleEntry>>( owner_role: R, roles: IndexMap<ModuleId, RoleAssignmentInit>, api: &mut Y, ) -> Result<Self, E>
Trait Implementations§
Source§impl RoleAssignmentObject for RoleAssignment
impl RoleAssignmentObject for RoleAssignment
fn self_id(&self) -> (&NodeId, Option<AttachedModuleId>)
fn set_owner_role<Y: SystemApi<E>, E: SystemApiError, A: Into<AccessRule>>( &self, rule: A, api: &mut Y, ) -> Result<(), E>
fn lock_owner_role<Y: SystemApi<E>, E: SystemApiError>( &self, api: &mut Y, ) -> Result<(), E>
fn set_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>, A: Into<AccessRule>>( &self, module: ModuleId, role_key: R, rule: A, api: &mut Y, ) -> Result<(), E>
fn get_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>>( &self, module: ModuleId, role_key: R, api: &mut Y, ) -> Result<RoleAssignmentGetOutput, E>
fn get_owner_role<Y: SystemApi<E>, E: SystemApiError, R: Into<RoleKey>>( &self, api: &mut Y, ) -> Result<RoleAssignmentGetOwnerRoleOutput, E>
Auto Trait Implementations§
impl Freeze for RoleAssignment
impl RefUnwindSafe for RoleAssignment
impl Send for RoleAssignment
impl Sync for RoleAssignment
impl Unpin for RoleAssignment
impl UnsafeUnpin for RoleAssignment
impl UnwindSafe for RoleAssignment
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