pub struct WebhookBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> WebhookBuilder<S>
impl<S: State> WebhookBuilder<S>
Sourcepub fn build(self) -> Webhookwhere
S: IsComplete,
pub fn build(self) -> Webhookwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn url(self, value: String) -> WebhookBuilder<SetUrl<S>>where
S::Url: IsUnset,
pub fn url(self, value: String) -> WebhookBuilder<SetUrl<S>>where
S::Url: IsUnset,
Sourcepub fn maybe_url(self, value: Option<String>) -> WebhookBuilder<SetUrl<S>>where
S::Url: IsUnset,
pub fn maybe_url(self, value: Option<String>) -> WebhookBuilder<SetUrl<S>>where
S::Url: IsUnset,
Sourcepub fn payload_url(self, value: String) -> WebhookBuilder<SetPayloadUrl<S>>where
S::PayloadUrl: IsUnset,
pub fn payload_url(self, value: String) -> WebhookBuilder<SetPayloadUrl<S>>where
S::PayloadUrl: IsUnset,
Sourcepub fn maybe_payload_url(
self,
value: Option<String>,
) -> WebhookBuilder<SetPayloadUrl<S>>where
S::PayloadUrl: IsUnset,
pub fn maybe_payload_url(
self,
value: Option<String>,
) -> WebhookBuilder<SetPayloadUrl<S>>where
S::PayloadUrl: IsUnset,
Sourcepub fn secret(self, value: String) -> WebhookBuilder<SetSecret<S>>where
S::Secret: IsUnset,
pub fn secret(self, value: String) -> WebhookBuilder<SetSecret<S>>where
S::Secret: IsUnset,
Sourcepub fn maybe_secret(self, value: Option<String>) -> WebhookBuilder<SetSecret<S>>where
S::Secret: IsUnset,
pub fn maybe_secret(self, value: Option<String>) -> WebhookBuilder<SetSecret<S>>where
S::Secret: IsUnset,
Sourcepub fn branch_filter(self, value: String) -> WebhookBuilder<SetBranchFilter<S>>where
S::BranchFilter: IsUnset,
pub fn branch_filter(self, value: String) -> WebhookBuilder<SetBranchFilter<S>>where
S::BranchFilter: IsUnset,
Sourcepub fn maybe_branch_filter(
self,
value: Option<String>,
) -> WebhookBuilder<SetBranchFilter<S>>where
S::BranchFilter: IsUnset,
pub fn maybe_branch_filter(
self,
value: Option<String>,
) -> WebhookBuilder<SetBranchFilter<S>>where
S::BranchFilter: IsUnset,
Sourcepub fn filter_groups(
self,
value: Vec<Vec<WebhookFilter>>,
) -> WebhookBuilder<SetFilterGroups<S>>where
S::FilterGroups: IsUnset,
pub fn filter_groups(
self,
value: Vec<Vec<WebhookFilter>>,
) -> WebhookBuilder<SetFilterGroups<S>>where
S::FilterGroups: IsUnset,
Sourcepub fn maybe_filter_groups(
self,
value: Option<Vec<Vec<WebhookFilter>>>,
) -> WebhookBuilder<SetFilterGroups<S>>where
S::FilterGroups: IsUnset,
pub fn maybe_filter_groups(
self,
value: Option<Vec<Vec<WebhookFilter>>>,
) -> WebhookBuilder<SetFilterGroups<S>>where
S::FilterGroups: IsUnset,
Sourcepub fn build_type(self, value: String) -> WebhookBuilder<SetBuildType<S>>where
S::BuildType: IsUnset,
pub fn build_type(self, value: String) -> WebhookBuilder<SetBuildType<S>>where
S::BuildType: IsUnset,
Sourcepub fn maybe_build_type(
self,
value: Option<String>,
) -> WebhookBuilder<SetBuildType<S>>where
S::BuildType: IsUnset,
pub fn maybe_build_type(
self,
value: Option<String>,
) -> WebhookBuilder<SetBuildType<S>>where
S::BuildType: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for WebhookBuilder<S>
impl<S> RefUnwindSafe for WebhookBuilder<S>
impl<S> Send for WebhookBuilder<S>
impl<S> Sync for WebhookBuilder<S>
impl<S> Unpin for WebhookBuilder<S>
impl<S> UnsafeUnpin for WebhookBuilder<S>
impl<S> UnwindSafe for WebhookBuilder<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.