Get a single team by its slug. Team slugs are resolved within the organization selected by the client's base URL/subdomain, allowing multiple organizations to each have a team with the same slug.
(
client: &StorageClient,
org_slug: &str,
team_slug: &str,
)
| 56 | /// base URL/subdomain, allowing multiple organizations to each have a team |
| 57 | /// with the same slug. |
| 58 | pub async fn get_team( |
| 59 | client: &StorageClient, |
| 60 | org_slug: &str, |
| 61 | team_slug: &str, |
| 62 | ) -> TeamsResult<TeamInfo> { |
| 63 | debug_assert_eq!(client.org_slug(), org_slug); |
| 64 | let path = format!("/teams/{team_slug}"); |
| 65 | client |
| 66 | .get(&path) |
| 67 | .await |
| 68 | .map_err(|e| map_remote_error(e, format!("team {team_slug}"))) |
| 69 | } |
| 70 | |
| 71 | /// Update a team's metadata. |
| 72 | /// |
no test coverage detected