List all teams in an organization. Returns every team the caller has visibility into. Secret teams are only returned when the caller is a member or an org admin. Team routes are org-scoped by the client's base URL/subdomain. For example, `org_slug = "delta"` means the client targets `https://delta. `, so `/teams/engineering` is Delta's engineering team. The same slug under `https://atomic
(client: &StorageClient, org_slug: &str)
| 18 | /// `/teams/engineering` is Delta's engineering team. The same slug under |
| 19 | /// `https://atomic.<domain>/teams/engineering` is a different team. |
| 20 | pub async fn list_teams(client: &StorageClient, org_slug: &str) -> TeamsResult<Vec<TeamInfo>> { |
| 21 | debug_assert_eq!(client.org_slug(), org_slug); |
| 22 | client |
| 23 | .get("/teams") |
| 24 | .await |
| 25 | .map_err(|e| map_remote_error(e, format!("org {org_slug}"))) |
| 26 | } |
| 27 | |
| 28 | /// Create a new team in an organization. |
| 29 | /// |
no test coverage detected