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§
Sourcefn custom_property_values(
&self,
repository: &RepoRef,
) -> impl Future<Output = Result<Option<Vec<PropertyEntry>>, ForgeError>> + Send
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.
Sourcefn set_custom_property_values(
&self,
repository: &RepoRef,
entries: &[PropertyEntry],
) -> impl Future<Output = Result<(), ForgeError>> + Send
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".