pub struct WebhookUpdateBuilder { /* private fields */ }Implementations§
source§impl WebhookUpdateBuilder
impl WebhookUpdateBuilder
sourcepub fn status(self, status: WebhookStatus) -> Self
pub fn status(self, status: WebhookStatus) -> Self
Webhook status. Options: active, paused and disabled. Default is active.
sourcepub fn delivery_url(self, url: impl Into<String>) -> Self
pub fn delivery_url(self, url: impl Into<String>) -> Self
The URL where the webhook payload is delivered.
sourcepub fn secret(self, secret: impl Into<String>) -> Self
pub fn secret(self, secret: impl Into<String>) -> Self
Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default is a MD5 hash from the current user’s ID
pub fn build(self) -> Result<WebhookUpdate>
Trait Implementations§
source§impl Default for WebhookUpdateBuilder
impl Default for WebhookUpdateBuilder
source§fn default() -> WebhookUpdateBuilder
fn default() -> WebhookUpdateBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebhookUpdateBuilder
impl RefUnwindSafe for WebhookUpdateBuilder
impl Send for WebhookUpdateBuilder
impl Sync for WebhookUpdateBuilder
impl Unpin for WebhookUpdateBuilder
impl UnwindSafe for WebhookUpdateBuilder
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