pub struct ForgeJo { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ForgeLike for ForgeJo
impl ForgeLike for ForgeJo
fn duplicate(&self) -> Box<dyn ForgeLike>
fn name(&self) -> String
Checks that the message has a valid authorisation.
Source§fn parse_webhook_body(&self, body: &Body) -> Result<Push>
fn parse_webhook_body(&self, body: &Body) -> Result<Push>
Parses the webhook body into Some(Push) struct if appropriate, or None if not. Read more
Source§fn commit_status<'life0, 'life1, 'async_trait>(
&'life0 self,
commit: &'life1 Commit,
) -> Pin<Box<dyn Future<Output = Result<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn commit_status<'life0, 'life1, 'async_trait>(
&'life0 self,
commit: &'life1 Commit,
) -> Pin<Box<dyn Future<Output = Result<Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Checks the results of any (e.g. CI) status checks for the commit.
fn list_webhooks<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_listen_url: &'life1 RepoListenUrl,
) -> Pin<Box<dyn Future<Output = Result<Vec<WebhookId>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unregister_webhook<'life0, 'life1, 'async_trait>(
&'life0 self,
webhook_id: &'life1 WebhookId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_webhook<'life0, 'life1, 'async_trait>(
&'life0 self,
repo_listen_url: &'life1 RepoListenUrl,
) -> Pin<Box<dyn Future<Output = Result<RegisteredWebhook>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn should_ignore_message(&self, message: &ForgeNotification) -> bool
fn should_ignore_message(&self, message: &ForgeNotification) -> bool
Checks if the message should be ignored. Read more
Auto Trait Implementations§
impl Freeze for ForgeJo
impl !RefUnwindSafe for ForgeJo
impl Send for ForgeJo
impl Sync for ForgeJo
impl Unpin for ForgeJo
impl !UnwindSafe for ForgeJo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more