pub trait LabelsApi {
// Required methods
fn create_label(
&self,
repository: &RepoRef,
name: &str,
color: &LabelColor,
description: &str,
) -> impl Future<Output = Result<(), ForgeError>> + Send;
fn delete_label(
&self,
repository: &RepoRef,
name: &str,
) -> impl Future<Output = Result<(), ForgeError>> + Send;
fn labels(
&self,
repository: &RepoRef,
) -> impl Future<Output = Result<Vec<Label>, ForgeError>> + Send;
fn update_label(
&self,
repository: &RepoRef,
name: &str,
color: &LabelColor,
description: &str,
) -> impl Future<Output = Result<(), ForgeError>> + Send;
}Expand description
The labels operations of the GitHub API.
Required Methods§
Sourcefn create_label(
&self,
repository: &RepoRef,
name: &str,
color: &LabelColor,
description: &str,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn create_label( &self, repository: &RepoRef, name: &str, color: &LabelColor, description: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Create the label name.
Sourcefn delete_label(
&self,
repository: &RepoRef,
name: &str,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn delete_label( &self, repository: &RepoRef, name: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Delete the label name.
Sourcefn labels(
&self,
repository: &RepoRef,
) -> impl Future<Output = Result<Vec<Label>, ForgeError>> + Send
fn labels( &self, repository: &RepoRef, ) -> impl Future<Output = Result<Vec<Label>, ForgeError>> + Send
Read every label of the repository.
Sourcefn update_label(
&self,
repository: &RepoRef,
name: &str,
color: &LabelColor,
description: &str,
) -> impl Future<Output = Result<(), ForgeError>> + Send
fn update_label( &self, repository: &RepoRef, name: &str, color: &LabelColor, description: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send
Set the color and description of the label name.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".