pub struct EditHookBuilder<'a> { /* private fields */ }
Expand description
Builder for EditHook
.
Implementations§
Source§impl<'a> EditHookBuilder<'a>
impl<'a> EditHookBuilder<'a>
Sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project to edit a webhook within.
Sourcepub fn url<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The URL for the webhook to contact.
Sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The name of the hook.
Sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
A description for the hook.
Sourcepub fn push_events(&mut self, value: bool) -> &mut Self
pub fn push_events(&mut self, value: bool) -> &mut Self
Whether to send push events for this webhook or not.
Sourcepub fn push_events_branch_filter<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn push_events_branch_filter<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Filter which branches send push events for this webhook.
Sourcepub fn branch_filter_strategy<VALUE: Into<BranchFilterStrategy>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn branch_filter_strategy<VALUE: Into<BranchFilterStrategy>>( &mut self, value: VALUE, ) -> &mut Self
The strategy to use for push_events_branch_filter
.
Sourcepub fn issues_events(&mut self, value: bool) -> &mut Self
pub fn issues_events(&mut self, value: bool) -> &mut Self
Whether to send issue events for this webhook or not.
Sourcepub fn confidential_issues_events(&mut self, value: bool) -> &mut Self
pub fn confidential_issues_events(&mut self, value: bool) -> &mut Self
Whether to send confidential issue events for this webhook or not.
Sourcepub fn merge_requests_events(&mut self, value: bool) -> &mut Self
pub fn merge_requests_events(&mut self, value: bool) -> &mut Self
Whether to send merge request events for this webhook or not.
Sourcepub fn tag_push_events(&mut self, value: bool) -> &mut Self
pub fn tag_push_events(&mut self, value: bool) -> &mut Self
Whether to send tag events for this webhook or not.
Sourcepub fn note_events(&mut self, value: bool) -> &mut Self
pub fn note_events(&mut self, value: bool) -> &mut Self
Whether to send note (comment) events for this webhook or not.
Sourcepub fn confidential_note_events(&mut self, value: bool) -> &mut Self
pub fn confidential_note_events(&mut self, value: bool) -> &mut Self
Whether to send confidential note (comment) events for this webhook or not.
Sourcepub fn job_events(&mut self, value: bool) -> &mut Self
pub fn job_events(&mut self, value: bool) -> &mut Self
Whether to send job events for this webhook or not.
Sourcepub fn pipeline_events(&mut self, value: bool) -> &mut Self
pub fn pipeline_events(&mut self, value: bool) -> &mut Self
Whether to send pipeline events for this webhook or not.
Sourcepub fn wiki_page_events(&mut self, value: bool) -> &mut Self
pub fn wiki_page_events(&mut self, value: bool) -> &mut Self
Whether to send wiki page events for this webhook or not.
Sourcepub fn deployment_events(&mut self, value: bool) -> &mut Self
pub fn deployment_events(&mut self, value: bool) -> &mut Self
Whether to send deployment events for this webhook or not.
Sourcepub fn releases_events(&mut self, value: bool) -> &mut Self
pub fn releases_events(&mut self, value: bool) -> &mut Self
Whether to send release events for this webhook or not.
Sourcepub fn feature_flag_events(&mut self, value: bool) -> &mut Self
pub fn feature_flag_events(&mut self, value: bool) -> &mut Self
Whether to send feature flag events for this webhook or not.
Sourcepub fn resource_access_token_events(&mut self, value: bool) -> &mut Self
pub fn resource_access_token_events(&mut self, value: bool) -> &mut Self
Whether to send resource access token events for this webhook or not.
Sourcepub fn custom_webhook_template<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn custom_webhook_template<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The template to use for the custom webhook.
Sourcepub fn enable_ssl_verification(&mut self, value: bool) -> &mut Self
pub fn enable_ssl_verification(&mut self, value: bool) -> &mut Self
Whether to verify SSL/TLS certificates for the webhook endpoint or not.
Source§impl<'a> EditHookBuilder<'a>
impl<'a> EditHookBuilder<'a>
Sourcepub fn custom_header<K, V>(&mut self, key: K, value: V) -> &mut Self
pub fn custom_header<K, V>(&mut self, key: K, value: V) -> &mut Self
Add a single custom header.
Trait Implementations§
Source§impl<'a> Clone for EditHookBuilder<'a>
impl<'a> Clone for EditHookBuilder<'a>
Source§fn clone(&self) -> EditHookBuilder<'a>
fn clone(&self) -> EditHookBuilder<'a>
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for EditHookBuilder<'a>
impl<'a> RefUnwindSafe for EditHookBuilder<'a>
impl<'a> Send for EditHookBuilder<'a>
impl<'a> Sync for EditHookBuilder<'a>
impl<'a> Unpin for EditHookBuilder<'a>
impl<'a> UnwindSafe for EditHookBuilder<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more