Skip to main content

DeployKeysApi

Trait DeployKeysApi 

Source
pub trait DeployKeysApi {
    // Required methods
    fn create_deploy_key(
        &self,
        repo: &RepoRef,
        body: &CreateKeyOption,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
    fn delete_deploy_key(
        &self,
        repo: &RepoRef,
        id: i64,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
    fn deploy_keys(
        &self,
        repo: &RepoRef,
    ) -> impl Future<Output = Result<Vec<DeployKey>, ForgeError>> + Send;
}
Expand description

The deploy key operations of the Forgejo API.

Required Methods§

Source

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

POST /repos/{owner}/{repo}/keys.

Source

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

DELETE /repos/{owner}/{repo}/keys/{id}.

Source

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

GET /repos/{owner}/{repo}/keys, every page.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§