junobuild_shared::controllers

Function set_controllers

Source
pub fn set_controllers(
    new_controllers: &[UserId],
    controller_data: &SetController,
    controllers: &mut Controllers,
)
Expand description

Sets or updates controllers with specified data.

ยงArguments

  • new_controllers: Slice of UserId for the controllers to be set or updated.
  • controller_data: SetController data to apply to the controllers.
  • controllers: Mutable reference to the current set of controllers to update.