I have a large number (121) projects inside an organization. To get the list of groups, I can use org_list_reposto get it, but I can't ask for all of them because Forgejo is set up to only return a maximum of 50 entries (by default).
letquery=OrgListReposQuery{page: Some(1),limit: Some(10000),};letlist=&self.api.org_list_repos(&group_name,query).await?;
Without changing configuration, the API returns a header that contains the total number of entries:
x-total-count: 121
Is there a good way of getting that count in some manner? I would prefer to use that instead of repeatedly requesting pages until I get an empty list.
I have a large number (121) projects inside an organization. To get the list of groups, I can use `org_list_repos`to get it, but I can't ask for all of them because Forgejo is set up to only return a maximum of 50 entries (by default).
```rust
let query = OrgListReposQuery {
page: Some(1),
limit: Some(10000),
};
let list = &self
.api
.org_list_repos(&group_name, query)
.await?;
```
Without changing configuration, the API returns a header that contains the total number of entries:
```
x-total-count: 121
```
Is there a good way of getting that count in some manner? I would prefer to use that instead of repeatedly requesting pages until I get an empty list.