pub struct CreateOutgoingWebhookRequest {
pub team_id: String,
pub channel_id: Option<String>,
pub creator_id: Option<String>,
pub description: Option<String>,
pub display_name: String,
pub trigger_words: Vec<String>,
pub trigger_when: Option<i32>,
pub callback_urls: Vec<String>,
pub content_type: Option<String>,
}
Fields§
§team_id: String
The ID of the team that the webhook watchs
channel_id: Option<String>
The ID of a public channel that the webhook watchs
creator_id: Option<String>
The ID of the owner of the webhook if different than the requester. Required in local mode.
description: Option<String>
The description for this outgoing webhook
display_name: String
The display name for this outgoing webhook
trigger_words: Vec<String>
List of words for the webhook to trigger on
trigger_when: Option<i32>
When to trigger the webhook, 0
when a trigger word is present at all and 1
if the message starts with a trigger word
callback_urls: Vec<String>
The URLs to POST the payloads to when the webhook is triggered
content_type: Option<String>
The format to POST the data in, either application/json
or application/x-www-form-urlencoded
Implementations§
Trait Implementations§
Source§impl Clone for CreateOutgoingWebhookRequest
impl Clone for CreateOutgoingWebhookRequest
Source§fn clone(&self) -> CreateOutgoingWebhookRequest
fn clone(&self) -> CreateOutgoingWebhookRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateOutgoingWebhookRequest
impl Debug for CreateOutgoingWebhookRequest
Source§impl Default for CreateOutgoingWebhookRequest
impl Default for CreateOutgoingWebhookRequest
Source§fn default() -> CreateOutgoingWebhookRequest
fn default() -> CreateOutgoingWebhookRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateOutgoingWebhookRequest
impl<'de> Deserialize<'de> for CreateOutgoingWebhookRequest
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 PartialEq for CreateOutgoingWebhookRequest
impl PartialEq for CreateOutgoingWebhookRequest
Source§fn eq(&self, other: &CreateOutgoingWebhookRequest) -> bool
fn eq(&self, other: &CreateOutgoingWebhookRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateOutgoingWebhookRequest
Auto Trait Implementations§
impl Freeze for CreateOutgoingWebhookRequest
impl RefUnwindSafe for CreateOutgoingWebhookRequest
impl Send for CreateOutgoingWebhookRequest
impl Sync for CreateOutgoingWebhookRequest
impl Unpin for CreateOutgoingWebhookRequest
impl UnwindSafe for CreateOutgoingWebhookRequest
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