pub enum WebhookResponse {
Ack,
Sync {
timeout_secs: Option<u64>,
},
}Expand description
How the webhook HTTP response is shaped.
Variants§
Ack
202 returned immediately; the workflow runs async.
Sync
Wait for the workflow to run a RespondToTrigger step and
return its body; times out after timeout_secs.
Trait Implementations§
Source§impl Clone for WebhookResponse
impl Clone for WebhookResponse
Source§fn clone(&self) -> WebhookResponse
fn clone(&self) -> WebhookResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for WebhookResponse
impl ComposeSchema for WebhookResponse
Source§impl Debug for WebhookResponse
impl Debug for WebhookResponse
Source§impl Default for WebhookResponse
impl Default for WebhookResponse
Source§impl<'de> Deserialize<'de> for WebhookResponse
impl<'de> Deserialize<'de> for WebhookResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for WebhookResponse
impl JsonSchema for WebhookResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for WebhookResponse
impl PartialEq for WebhookResponse
Source§fn eq(&self, other: &WebhookResponse) -> bool
fn eq(&self, other: &WebhookResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebhookResponse
impl Serialize for WebhookResponse
impl StructuralPartialEq for WebhookResponse
Auto Trait Implementations§
impl Freeze for WebhookResponse
impl RefUnwindSafe for WebhookResponse
impl Send for WebhookResponse
impl Sync for WebhookResponse
impl Unpin for WebhookResponse
impl UnsafeUnpin for WebhookResponse
impl UnwindSafe for WebhookResponse
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