Skip to main content

AutolinksApi

Trait AutolinksApi 

Source
pub trait AutolinksApi {
    // Required methods
    fn autolinks(
        &self,
        repository: &RepoRef,
    ) -> impl Future<Output = Result<Vec<Autolink>, ForgeError>> + Send;
    fn create_autolink(
        &self,
        repository: &RepoRef,
        autolink: &AutolinkBody,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
    fn delete_autolink(
        &self,
        repository: &RepoRef,
        id: u64,
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
}
Expand description

The autolinks operations of the GitHub API.

Required Methods§

Read the repository’s autolinks.

Create an autolink.

Delete the autolink id.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§