Skip to main content

RepositoryApi

Trait RepositoryApi 

Source
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§

Source

fn patch_repository( &self, repo: &RepoRef, body: &EditRepoOption, ) -> impl Future<Output = Result<(), ForgeError>> + Send

PATCH /repos/{owner}/{repo}.

Source

fn replace_topics( &self, repo: &RepoRef, topics: &[String], ) -> impl Future<Output = Result<(), ForgeError>> + Send

PUT /repos/{owner}/{repo}/topics.

Source

fn repository( &self, repo: &RepoRef, ) -> impl Future<Output = Result<Repository, ForgeError>> + Send

GET /repos/{owner}/{repo}.

Source

fn topics( &self, repo: &RepoRef, ) -> impl Future<Output = Result<Vec<String>, ForgeError>> + Send

GET /repos/{owner}/{repo}/topics.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§