pub struct CreateWebhookRequest {
pub description: Option<String>,
pub webhook_url: String,
pub trigger_types: Vec<WebhookTrigger>,
pub webhook_secret: Option<String>,
pub notification_email_addresses: Option<Vec<String>>,
pub privacy_mode: Option<PrivacyMode>,
}Expand description
Request to create a new webhook.
§Example
let request = CreateWebhookRequest::builder()
.description("My webhook")
.webhook_url("https://api.example.com/webhooks")
.trigger_types(vec![WebhookTrigger::MessageCreated])
.webhook_secret("my_secret_key")
.build();Fields§
§description: Option<String>Description of the webhook.
webhook_url: StringURL where webhook notifications will be sent.
trigger_types: Vec<WebhookTrigger>List of trigger types this webhook listens for.
webhook_secret: Option<String>Secret key for webhook signature verification.
notification_email_addresses: Option<Vec<String>>Email addresses to notify when webhook fails.
privacy_mode: Option<PrivacyMode>Privacy mode settings
Implementations§
Source§impl CreateWebhookRequest
impl CreateWebhookRequest
Sourcepub fn builder() -> CreateWebhookRequestBuilder
pub fn builder() -> CreateWebhookRequestBuilder
Create a builder for CreateWebhookRequest.
Trait Implementations§
Source§impl Clone for CreateWebhookRequest
impl Clone for CreateWebhookRequest
Source§fn clone(&self) -> CreateWebhookRequest
fn clone(&self) -> CreateWebhookRequest
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 CreateWebhookRequest
impl Debug for CreateWebhookRequest
Source§impl<'de> Deserialize<'de> for CreateWebhookRequest
impl<'de> Deserialize<'de> for CreateWebhookRequest
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
impl Eq for CreateWebhookRequest
Source§impl PartialEq for CreateWebhookRequest
impl PartialEq for CreateWebhookRequest
Source§fn eq(&self, other: &CreateWebhookRequest) -> bool
fn eq(&self, other: &CreateWebhookRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateWebhookRequest
impl Serialize for CreateWebhookRequest
impl StructuralPartialEq for CreateWebhookRequest
Auto Trait Implementations§
impl Freeze for CreateWebhookRequest
impl RefUnwindSafe for CreateWebhookRequest
impl Send for CreateWebhookRequest
impl Sync for CreateWebhookRequest
impl Unpin for CreateWebhookRequest
impl UnsafeUnpin for CreateWebhookRequest
impl UnwindSafe for CreateWebhookRequest
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