Skip to main content

WebhookFactoryExt

Trait WebhookFactoryExt 

Source
pub trait WebhookFactoryExt {
    // Required methods
    fn webhook(
        &self,
        profile: WebhookProfile,
        label: impl AsRef<str>,
        payload_spec: WebhookPayloadSpec,
    ) -> WebhookFixture;
    fn webhook_github(
        &self,
        label: impl AsRef<str>,
        payload_spec: WebhookPayloadSpec,
    ) -> WebhookFixture;
    fn webhook_stripe(
        &self,
        label: impl AsRef<str>,
        payload_spec: WebhookPayloadSpec,
    ) -> WebhookFixture;
    fn webhook_slack(
        &self,
        label: impl AsRef<str>,
        payload_spec: WebhookPayloadSpec,
    ) -> WebhookFixture;
}
Expand description

Extension trait to generate webhook fixtures from Factory.

Required Methods§

Source

fn webhook( &self, profile: WebhookProfile, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture

Generate a webhook fixture for an explicit profile.

Source

fn webhook_github( &self, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture

Generate a GitHub webhook fixture.

Source

fn webhook_stripe( &self, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture

Generate a Stripe webhook fixture.

Source

fn webhook_slack( &self, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture

Generate a Slack webhook fixture.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WebhookFactoryExt for Factory

Source§

fn webhook( &self, profile: WebhookProfile, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture

Source§

fn webhook_github( &self, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture

Source§

fn webhook_stripe( &self, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture

Source§

fn webhook_slack( &self, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture

Implementors§