Skip to main content

ForgeProposal

Trait ForgeProposal 

Source
pub trait ForgeProposal {
    type Error: StdError + Send + Sync + 'static;

    // Required methods
    async fn ensure_proposal(
        &self,
        head: &str,
        base: &str,
        title: &str,
        body: &str,
    ) -> Result<(), Self::Error>;
    async fn proposal_body(
        &self,
        head: &str,
        base: &str,
    ) -> Result<Option<String>, Self::Error>;
}
Expand description

The release proposal pull request on the forge.

Required Associated Types§

Source

type Error: StdError + Send + Sync + 'static

The failure of a forge pull request call.

Required Methods§

Source

async fn ensure_proposal( &self, head: &str, base: &str, title: &str, body: &str, ) -> Result<(), Self::Error>

Create the pull request from head into base, or update the open one.

Source

async fn proposal_body( &self, head: &str, base: &str, ) -> Result<Option<String>, Self::Error>

Description of the open pull request from head into base, when one exists.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§