pub struct UpdateWebhookRequest {
pub url: Option<String>,
pub description: Option<String>,
pub events: Option<Vec<WebhookEvent>>,
pub enabled: Option<bool>,
}
Fields§
§url: Option<String>
The url of the webhook where notifications will be sent. URL must be valid, unique and https.
description: Option<String>
description of the webhook of what it is used for.should not contain special characters.
events: Option<Vec<WebhookEvent>>
The events that the webhook will be subscribed to
enabled: Option<bool>
The status of the webhook
Implementations§
Source§impl UpdateWebhookRequest
impl UpdateWebhookRequest
pub fn new() -> UpdateWebhookRequest
Trait Implementations§
Source§impl Clone for UpdateWebhookRequest
impl Clone for UpdateWebhookRequest
Source§fn clone(&self) -> UpdateWebhookRequest
fn clone(&self) -> UpdateWebhookRequest
Returns a copy 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 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