pub struct OutgoingWebhook {Show 13 fields
pub id: Option<String>,
pub create_at: Option<i64>,
pub update_at: Option<i64>,
pub delete_at: Option<i64>,
pub creator_id: Option<String>,
pub team_id: Option<String>,
pub channel_id: Option<String>,
pub description: Option<String>,
pub display_name: Option<String>,
pub trigger_words: Option<Vec<String>>,
pub trigger_when: Option<i32>,
pub callback_urls: Option<Vec<String>>,
pub content_type: Option<String>,
}
Fields§
§id: Option<String>
The unique identifier for this outgoing webhook
create_at: Option<i64>
The time in milliseconds a outgoing webhook was created
update_at: Option<i64>
The time in milliseconds a outgoing webhook was last updated
delete_at: Option<i64>
The time in milliseconds a outgoing webhook was deleted
creator_id: Option<String>
The Id of the user who created the webhook
team_id: Option<String>
The ID of the team that the webhook watchs
channel_id: Option<String>
The ID of a public channel that the webhook watchs
description: Option<String>
The description for this outgoing webhook
display_name: Option<String>
The display name for this outgoing webhook
trigger_words: Option<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: Option<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§
Source§impl OutgoingWebhook
impl OutgoingWebhook
pub fn new() -> OutgoingWebhook
Trait Implementations§
Source§impl Clone for OutgoingWebhook
impl Clone for OutgoingWebhook
Source§fn clone(&self) -> OutgoingWebhook
fn clone(&self) -> OutgoingWebhook
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 OutgoingWebhook
impl Debug for OutgoingWebhook
Source§impl Default for OutgoingWebhook
impl Default for OutgoingWebhook
Source§fn default() -> OutgoingWebhook
fn default() -> OutgoingWebhook
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OutgoingWebhook
impl<'de> Deserialize<'de> for OutgoingWebhook
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 OutgoingWebhook
impl PartialEq for OutgoingWebhook
Source§impl Serialize for OutgoingWebhook
impl Serialize for OutgoingWebhook
impl StructuralPartialEq for OutgoingWebhook
Auto Trait Implementations§
impl Freeze for OutgoingWebhook
impl RefUnwindSafe for OutgoingWebhook
impl Send for OutgoingWebhook
impl Sync for OutgoingWebhook
impl Unpin for OutgoingWebhook
impl UnwindSafe for OutgoingWebhook
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