Skip to main content

LabelsApi

Trait LabelsApi 

Source
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§

Source

fn create_label( &self, repository: &RepoRef, name: &str, color: &LabelColor, description: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send

Create the label name.

Source

fn delete_label( &self, repository: &RepoRef, name: &str, ) -> impl Future<Output = Result<(), ForgeError>> + Send

Delete the label name.

Source

fn labels( &self, repository: &RepoRef, ) -> impl Future<Output = Result<Vec<Label>, ForgeError>> + Send

Read every label of the repository.

Source

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".

Implementors§