pub trait RepositoryApi {
// Required methods
fn patch_repository(
&self,
repo: &RepoRef,
body: &EditRepoOption,
) -> impl Future<Output = Result<(), ForgeError>> + Send;
fn replace_topics(
&self,
repo: &RepoRef,
topics: &[String],
) -> impl Future<Output = Result<(), ForgeError>> + Send;
fn repository(
&self,
repo: &RepoRef,
) -> impl Future<Output = Result<Repository, ForgeError>> + Send;
fn topics(
&self,
repo: &RepoRef,
) -> impl Future<Output = Result<Vec<String>, ForgeError>> + Send;
}Expand description
The repository operations of the Forgejo API.
Required Methods§
Sourcefn patch_repository(
&self,
repo: &RepoRef,
body: &EditRepoOption,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn patch_repository( &self, repo: &RepoRef, body: &EditRepoOption, ) -> impl Future<Output = Result<(), ForgeError>> + Send
PATCH /repos/{owner}/{repo}.
Sourcefn replace_topics(
&self,
repo: &RepoRef,
topics: &[String],
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn replace_topics( &self, repo: &RepoRef, topics: &[String], ) -> impl Future<Output = Result<(), ForgeError>> + Send
PUT /repos/{owner}/{repo}/topics.
Sourcefn repository(
&self,
repo: &RepoRef,
) -> impl Future<Output = Result<Repository, ForgeError>> + Send
fn repository( &self, repo: &RepoRef, ) -> impl Future<Output = Result<Repository, ForgeError>> + Send
GET /repos/{owner}/{repo}.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".