pub struct WebhookBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> WebhookBuilder<'a, Empty>
impl<'a> WebhookBuilder<'a, Empty>
Source§impl<'a, S> WebhookBuilder<'a, S>
impl<'a, S> WebhookBuilder<'a, S>
Source§impl<'a, S> WebhookBuilder<'a, S>
impl<'a, S> WebhookBuilder<'a, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> WebhookBuilder<'a, SetCreatedAt<S>>
pub fn created_at( self, value: impl Into<Datetime>, ) -> WebhookBuilder<'a, SetCreatedAt<S>>
Set the createdAt field (required)
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Sourcepub fn description(self, value: impl Into<Option<CowStr<'a>>>) -> Self
pub fn description(self, value: impl Into<Option<CowStr<'a>>>) -> Self
Set the description field (optional)
Sourcepub fn maybe_description(self, value: Option<CowStr<'a>>) -> Self
pub fn maybe_description(self, value: Option<CowStr<'a>>) -> Self
Set the description field to an Option value (optional)
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Sourcepub fn error_count(self, value: impl Into<Option<i64>>) -> Self
pub fn error_count(self, value: impl Into<Option<i64>>) -> Self
Set the errorCount field (optional)
Sourcepub fn maybe_error_count(self, value: Option<i64>) -> Self
pub fn maybe_error_count(self, value: Option<i64>) -> Self
Set the errorCount field to an Option value (optional)
Source§impl<'a, S> WebhookBuilder<'a, S>
impl<'a, S> WebhookBuilder<'a, S>
Source§impl<'a, S> WebhookBuilder<'a, S>
impl<'a, S> WebhookBuilder<'a, S>
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Sourcepub fn last_triggered(self, value: impl Into<Option<Datetime>>) -> Self
pub fn last_triggered(self, value: impl Into<Option<Datetime>>) -> Self
Set the lastTriggered field (optional)
Sourcepub fn maybe_last_triggered(self, value: Option<Datetime>) -> Self
pub fn maybe_last_triggered(self, value: Option<Datetime>) -> Self
Set the lastTriggered field to an Option value (optional)
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Sourcepub fn rewrite(self, value: impl Into<Option<Vec<RewriteRule<'a>>>>) -> Self
pub fn rewrite(self, value: impl Into<Option<Vec<RewriteRule<'a>>>>) -> Self
Set the rewrite field (optional)
Sourcepub fn maybe_rewrite(self, value: Option<Vec<RewriteRule<'a>>>) -> Self
pub fn maybe_rewrite(self, value: Option<Vec<RewriteRule<'a>>>) -> Self
Set the rewrite field to an Option value (optional)
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Source§impl<'a, S: State> WebhookBuilder<'a, S>
impl<'a, S: State> WebhookBuilder<'a, S>
Sourcepub fn updated_at(self, value: impl Into<Option<Datetime>>) -> Self
pub fn updated_at(self, value: impl Into<Option<Datetime>>) -> Self
Set the updatedAt field (optional)
Sourcepub fn maybe_updated_at(self, value: Option<Datetime>) -> Self
pub fn maybe_updated_at(self, value: Option<Datetime>) -> Self
Set the updatedAt field to an Option value (optional)
Source§impl<'a, S> WebhookBuilder<'a, S>
impl<'a, S> WebhookBuilder<'a, S>
Source§impl<'a, S> WebhookBuilder<'a, S>
impl<'a, S> WebhookBuilder<'a, S>
Auto Trait Implementations§
impl<'a, S> Freeze for WebhookBuilder<'a, S>
impl<'a, S> RefUnwindSafe for WebhookBuilder<'a, S>
impl<'a, S> Send for WebhookBuilder<'a, S>
impl<'a, S> Sync for WebhookBuilder<'a, S>
impl<'a, S> Unpin for WebhookBuilder<'a, S>
impl<'a, S> UnwindSafe for WebhookBuilder<'a, S>
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