Retrieves the list of users in the project. NOTE: If users have not been pulled, they will be pulled upon calling this. NOTE: This function is only available to accounts with admin status on the Remote
(&self)
| 643 | /// |
| 644 | /// NOTE: This function is only available to accounts with admin status on the Remote |
| 645 | pub fn users(&self) -> Result<Array<RemoteUser>, ()> { |
| 646 | if !self.has_pulled_users() { |
| 647 | self.pull_users()?; |
| 648 | } |
| 649 | let mut count = 0; |
| 650 | let value = unsafe { BNRemoteGetUsers(self.handle.as_ptr(), &mut count) }; |
| 651 | if value.is_null() { |
| 652 | return Err(()); |
| 653 | } |
| 654 | Ok(unsafe { Array::new(value, count, ()) }) |
| 655 | } |
| 656 | |
| 657 | /// Retrieves a specific user in the project by their ID. |
| 658 | /// |
nothing calls this directly
no test coverage detected