List all domain aliases claimed by an organization. # Errors Returns [`TeamsError::OrgNotFound`] if the organization does not exist, or [`TeamsError::Remote`] on transport failure. [`TeamsError::OrgNotFound`]: crate::error::TeamsError::OrgNotFound [`TeamsError::Remote`]: crate::error::TeamsError::Remote
(
client: &StorageClient,
org_slug: &str,
)
| 20 | /// [`TeamsError::OrgNotFound`]: crate::error::TeamsError::OrgNotFound |
| 21 | /// [`TeamsError::Remote`]: crate::error::TeamsError::Remote |
| 22 | pub async fn list_domains( |
| 23 | client: &StorageClient, |
| 24 | org_slug: &str, |
| 25 | ) -> TeamsResult<Vec<DomainAliasInfo>> { |
| 26 | let path = format!("/orgs/{org_slug}/domains"); |
| 27 | client |
| 28 | .get(&path) |
| 29 | .await |
| 30 | .map_err(|e| map_remote_error(e, format!("org {org_slug}"))) |
| 31 | } |
| 32 | |
| 33 | /// Claim a new domain alias for an organization. |
| 34 | /// |
nothing calls this directly
no test coverage detected