Skip to main content

CustomPropertiesApi

Trait CustomPropertiesApi 

Source
pub trait CustomPropertiesApi {
    // Required methods
    fn custom_property_values(
        &self,
        repository: &RepoRef,
    ) -> impl Future<Output = Result<Option<Vec<PropertyEntry>>, ForgeError>> + Send;
    fn set_custom_property_values(
        &self,
        repository: &RepoRef,
        entries: &[PropertyEntry],
    ) -> impl Future<Output = Result<(), ForgeError>> + Send;
}
Expand description

The custom properties operations of the GitHub API.

Required Methods§

Source

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

Read the custom property values, or None when the repository has no custom properties endpoint.

Source

fn set_custom_property_values( &self, repository: &RepoRef, entries: &[PropertyEntry], ) -> impl Future<Output = Result<(), ForgeError>> + Send

Set or clear several custom property values in one request.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§