| 1480 | 1480 | | pub owner_id: String, |
| 1481 | 1481 | | } |
| 1482 | 1482 | | |
| 1483 | + | /// `deleted_repos` takes [`AllIdsArgs`]: every repository that is not a |
| 1484 | + | /// fork and is deleted but not purged yet (so it may still be restored), |
| 1485 | + | /// by id, a page at a time, for work recording where such a repository's |
| 1486 | + | /// work items came from. Returns [`DeletedRepoPage`]. |
| 1487 | + | #[derive(Clone, Debug, Default, Serialize, Deserialize)] |
| 1488 | + | pub struct DeletedRepoPage { |
| 1489 | + | pub repos: Vec<RestorableRepo>, |
| 1490 | + | /// Where the next page starts; null on the last. |
| 1491 | + | pub next: Option<String>, |
| 1492 | + | } |
| 1493 | + | |
| 1494 | + | #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] |
| 1495 | + | pub struct RestorableRepo { |
| 1496 | + | pub id: String, |
| 1497 | + | /// Its workspace's slug. |
| 1498 | + | pub namespace: String, |
| 1499 | + | pub name: String, |
| 1500 | + | pub is_private: bool, |
| 1501 | + | } |
| 1502 | + | |
| 1483 | 1503 | | /// `visibility`: which of these repositories (`namespace/name`) are |
| 1484 | 1504 | | /// private, for billing, which pays for work on public ones from g1t's |
| 1485 | 1505 | | /// open-source pool. A pull request's working copy answers as the |