ephemeris_forge_forgejo/api/operations/
repository.rs1use ephemeris_forge::RepoRef;
2
3use crate::api::error::ForgeError;
4use crate::api::model::Repository;
5use crate::api::request::EditRepoOption;
6
7pub trait RepositoryApi {
9 fn patch_repository(
11 &self,
12 repo: &RepoRef,
13 body: &EditRepoOption,
14 ) -> impl Future<Output = Result<(), ForgeError>> + Send;
15
16 fn replace_topics(
18 &self,
19 repo: &RepoRef,
20 topics: &[String],
21 ) -> impl Future<Output = Result<(), ForgeError>> + Send;
22
23 fn repository(
25 &self,
26 repo: &RepoRef,
27 ) -> impl Future<Output = Result<Repository, ForgeError>> + Send;
28
29 fn topics(
31 &self,
32 repo: &RepoRef,
33 ) -> impl Future<Output = Result<Vec<String>, ForgeError>> + Send;
34}