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§
Sourcefn create_deploy_key(
&self,
repo: &RepoRef,
body: &CreateKeyOption,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn create_deploy_key( &self, repo: &RepoRef, body: &CreateKeyOption, ) -> impl Future<Output = Result<(), ForgeError>> + Send
POST /repos/{owner}/{repo}/keys.
Sourcefn delete_deploy_key(
&self,
repo: &RepoRef,
id: i64,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn delete_deploy_key( &self, repo: &RepoRef, id: i64, ) -> impl Future<Output = Result<(), ForgeError>> + Send
DELETE /repos/{owner}/{repo}/keys/{id}.
Sourcefn deploy_keys(
&self,
repo: &RepoRef,
) -> impl Future<Output = Result<Vec<DeployKey>, ForgeError>> + Send
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".