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§
Sourcefn autolinks(
&self,
repository: &RepoRef,
) -> impl Future<Output = Result<Vec<Autolink>, ForgeError>> + Send
fn autolinks( &self, repository: &RepoRef, ) -> impl Future<Output = Result<Vec<Autolink>, ForgeError>> + Send
Read the repository’s autolinks.
Sourcefn create_autolink(
&self,
repository: &RepoRef,
autolink: &AutolinkBody,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn create_autolink( &self, repository: &RepoRef, autolink: &AutolinkBody, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Create an autolink.
Sourcefn delete_autolink(
&self,
repository: &RepoRef,
id: u64,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn delete_autolink( &self, repository: &RepoRef, id: u64, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Delete the autolink id.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".