pub struct CreateIncomingWebhookRequest {
pub channel_id: String,
pub user_id: Option<String>,
pub display_name: Option<String>,
pub description: Option<String>,
pub username: Option<String>,
pub icon_url: Option<String>,
}
Fields§
§channel_id: String
The ID of a public channel or private group that receives the webhook payloads.
user_id: Option<String>
The ID of the owner of the webhook if different than the requester. Required for local mode.
display_name: Option<String>
The display name for this incoming webhook
description: Option<String>
The description for this incoming webhook
username: Option<String>
The username this incoming webhook will post as.
icon_url: Option<String>
The profile picture this incoming webhook will use when posting.
Implementations§
Source§impl CreateIncomingWebhookRequest
impl CreateIncomingWebhookRequest
pub fn new(channel_id: String) -> CreateIncomingWebhookRequest
Trait Implementations§
Source§impl Clone for CreateIncomingWebhookRequest
impl Clone for CreateIncomingWebhookRequest
Source§fn clone(&self) -> CreateIncomingWebhookRequest
fn clone(&self) -> CreateIncomingWebhookRequest
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 CreateIncomingWebhookRequest
impl Debug for CreateIncomingWebhookRequest
Source§impl Default for CreateIncomingWebhookRequest
impl Default for CreateIncomingWebhookRequest
Source§fn default() -> CreateIncomingWebhookRequest
fn default() -> CreateIncomingWebhookRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateIncomingWebhookRequest
impl<'de> Deserialize<'de> for CreateIncomingWebhookRequest
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 CreateIncomingWebhookRequest
impl PartialEq for CreateIncomingWebhookRequest
Source§fn eq(&self, other: &CreateIncomingWebhookRequest) -> bool
fn eq(&self, other: &CreateIncomingWebhookRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateIncomingWebhookRequest
Auto Trait Implementations§
impl Freeze for CreateIncomingWebhookRequest
impl RefUnwindSafe for CreateIncomingWebhookRequest
impl Send for CreateIncomingWebhookRequest
impl Sync for CreateIncomingWebhookRequest
impl Unpin for CreateIncomingWebhookRequest
impl UnwindSafe for CreateIncomingWebhookRequest
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