pub struct WebhookNotifyKind;Expand description
Fires a best-effort POST to task.webhook_url and then auto-
approves. External systems wire webhook_url to whatever they
want notified (a Slack incoming webhook, a custom orchestrator,
the legal team’s intake form). The HTTP fire is intentionally
stubbed at the framework level — see the impl for details — so
no new HTTP-client dependency is forced on the default build.
Trait Implementations§
Source§impl Default for WebhookNotifyKind
impl Default for WebhookNotifyKind
Source§impl TaskKind for WebhookNotifyKind
impl TaskKind for WebhookNotifyKind
Source§fn kind_name(&self) -> &'static str
fn kind_name(&self) -> &'static str
Discriminator stored in
WorkflowTask.kind. Globally unique
across the process.Source§fn verbose_name(&self) -> &'static str
fn verbose_name(&self) -> &'static str
Human-readable label for the workflow task editor’s “Kind”
dropdown. Defaults to
Self::kind_name.Source§fn on_assign(&self, ctx: &AssignedTask<'_>) -> AssignOutcome
fn on_assign(&self, ctx: &AssignedTask<'_>) -> AssignOutcome
Called when this task becomes the workflow’s current step.
Side-effects (firing webhooks, recording metrics) belong here. Read more
Auto Trait Implementations§
impl Forget for WebhookNotifyKind
impl Freeze for WebhookNotifyKind
impl RefUnwindSafe for WebhookNotifyKind
impl Send for WebhookNotifyKind
impl Sync for WebhookNotifyKind
impl Unpin for WebhookNotifyKind
impl UnsafeUnpin for WebhookNotifyKind
impl UnwindSafe for WebhookNotifyKind
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.