pub struct WebhookCreateBuilder<R, E, D> { /* private fields */ }Implementations§
source§impl<R, E, D> WebhookCreateBuilder<R, E, D>
impl<R, E, D> WebhookCreateBuilder<R, E, D>
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 resource(
self,
resource: Resource
) -> WebhookCreateBuilder<WithResource, E, D>
pub fn resource( self, resource: Resource ) -> WebhookCreateBuilder<WithResource, E, D>
Webhook resource.
sourcepub fn event(self, event: Event) -> WebhookCreateBuilder<R, WithEvent, D>
pub fn event(self, event: Event) -> WebhookCreateBuilder<R, WithEvent, D>
Webhook event.
sourcepub fn delivery_url(
self,
url: impl Into<String>
) -> WebhookCreateBuilder<R, E, WithUrl>
pub fn delivery_url( self, url: impl Into<String> ) -> WebhookCreateBuilder<R, E, WithUrl>
The URL where the webhook payload is delivered.
source§impl WebhookCreateBuilder<WithResource, WithEvent, WithUrl>
impl WebhookCreateBuilder<WithResource, WithEvent, WithUrl>
pub fn build(self) -> WebhookCreate
Trait Implementations§
Auto Trait Implementations§
impl<R, E, D> Freeze for WebhookCreateBuilder<R, E, D>
impl<R, E, D> RefUnwindSafe for WebhookCreateBuilder<R, E, D>
impl<R, E, D> Send for WebhookCreateBuilder<R, E, D>
impl<R, E, D> Sync for WebhookCreateBuilder<R, E, D>
impl<R, E, D> Unpin for WebhookCreateBuilder<R, E, D>
impl<R, E, D> UnwindSafe for WebhookCreateBuilder<R, E, D>
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