List all members of an organization. # Arguments `client` — Authenticated storage client. `org_slug` — URL-safe slug of the organization.
(
client: &StorageClient,
org_slug: &str,
)
| 17 | /// * `client` — Authenticated storage client. |
| 18 | /// * `org_slug` — URL-safe slug of the organization. |
| 19 | pub async fn list_members( |
| 20 | client: &StorageClient, |
| 21 | org_slug: &str, |
| 22 | ) -> TeamsResult<Vec<OrgMemberInfo>> { |
| 23 | let path = format!("/orgs/{org_slug}/members"); |
| 24 | client |
| 25 | .get(&path) |
| 26 | .await |
| 27 | .map_err(|e| map_remote_error(e, format!("org {org_slug}"))) |
| 28 | } |
| 29 | |
| 30 | /// Add a member to an organization. |
| 31 | /// |
no test coverage detected