pub struct UpdateWebhookRequest {
pub description: Option<String>,
pub webhook_url: Option<String>,
pub trigger_types: Option<Vec<WebhookTrigger>>,
pub webhook_secret: Option<String>,
pub notification_email_addresses: Option<Vec<String>>,
}Expand description
Request to update a webhook.
All fields are optional - only provide the fields you want to update.
§Example
let update = UpdateWebhookRequest::builder()
.description("Updated description")
.trigger_types(vec![WebhookTrigger::MessageCreated, WebhookTrigger::MessageUpdated])
.build();Fields§
§description: Option<String>Update webhook description.
webhook_url: Option<String>Update webhook URL.
trigger_types: Option<Vec<WebhookTrigger>>Update trigger types.
webhook_secret: Option<String>Update webhook secret.
notification_email_addresses: Option<Vec<String>>Update notification email addresses.
Implementations§
Source§impl UpdateWebhookRequest
impl UpdateWebhookRequest
Sourcepub fn builder() -> UpdateWebhookRequestBuilder
pub fn builder() -> UpdateWebhookRequestBuilder
Create a builder for UpdateWebhookRequest.
Trait Implementations§
Source§impl Clone for UpdateWebhookRequest
impl Clone for UpdateWebhookRequest
Source§fn clone(&self) -> UpdateWebhookRequest
fn clone(&self) -> UpdateWebhookRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 UpdateWebhookRequest
impl Debug for UpdateWebhookRequest
Source§impl Default for UpdateWebhookRequest
impl Default for UpdateWebhookRequest
Source§fn default() -> UpdateWebhookRequest
fn default() -> UpdateWebhookRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateWebhookRequest
impl<'de> Deserialize<'de> for UpdateWebhookRequest
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 UpdateWebhookRequest
impl PartialEq for UpdateWebhookRequest
Source§impl Serialize for UpdateWebhookRequest
impl Serialize for UpdateWebhookRequest
impl Eq for UpdateWebhookRequest
impl StructuralPartialEq for UpdateWebhookRequest
Auto Trait Implementations§
impl Freeze for UpdateWebhookRequest
impl RefUnwindSafe for UpdateWebhookRequest
impl Send for UpdateWebhookRequest
impl Sync for UpdateWebhookRequest
impl Unpin for UpdateWebhookRequest
impl UnwindSafe for UpdateWebhookRequest
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