pub struct WebhookAction {
pub id: WebhookActionId,
pub url: String,
pub use_params: bool,
pub as_json: bool,
pub include_document: bool,
pub body: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub params: Option<HashMap<String, String>>,
}Expand description
A webhook action that can be executed when a workflow is triggered.
Fields§
§id: WebhookActionIdUnique identifier of the webhook action.
url: StringURL of the webhook.
use_params: boolWhether to use query parameters.
as_json: boolWhether to send the body as JSON.
include_document: boolWhether to include the document in the request.
body: Option<String>Body of the webhook request.
headers: Option<HashMap<String, String>>Headers to include in the webhook request.
params: Option<HashMap<String, String>>Query parameters to include in the webhook request.
Trait Implementations§
Source§impl Clone for WebhookAction
impl Clone for WebhookAction
Source§fn clone(&self) -> WebhookAction
fn clone(&self) -> WebhookAction
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 Debug for WebhookAction
impl Debug for WebhookAction
Source§impl<'de> Deserialize<'de> for WebhookAction
impl<'de> Deserialize<'de> for WebhookAction
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
Auto Trait Implementations§
impl Freeze for WebhookAction
impl RefUnwindSafe for WebhookAction
impl Send for WebhookAction
impl Sync for WebhookAction
impl Unpin for WebhookAction
impl UnsafeUnpin for WebhookAction
impl UnwindSafe for WebhookAction
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