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§
Sourcefn webhook(
&self,
profile: WebhookProfile,
label: impl AsRef<str>,
payload_spec: WebhookPayloadSpec,
) -> WebhookFixture
fn webhook( &self, profile: WebhookProfile, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture
Generate a webhook fixture for an explicit profile.
Sourcefn webhook_github(
&self,
label: impl AsRef<str>,
payload_spec: WebhookPayloadSpec,
) -> WebhookFixture
fn webhook_github( &self, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture
Generate a GitHub webhook fixture.
Sourcefn webhook_stripe(
&self,
label: impl AsRef<str>,
payload_spec: WebhookPayloadSpec,
) -> WebhookFixture
fn webhook_stripe( &self, label: impl AsRef<str>, payload_spec: WebhookPayloadSpec, ) -> WebhookFixture
Generate a Stripe webhook fixture.
Sourcefn webhook_slack(
&self,
label: impl AsRef<str>,
payload_spec: WebhookPayloadSpec,
) -> WebhookFixture
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.