pub struct CreateHookBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateHook
.
Implementations§
source§impl<'a> CreateHookBuilder<'a>
impl<'a> CreateHookBuilder<'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 create 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 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 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 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.
sourcepub fn token<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn token<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
A secret token to include in webhook deliveries.
This may be used to ensure that the webhook is actually coming from the GitLab instance.
sourcepub fn build(&self) -> Result<CreateHook<'a>, CreateHookBuilderError>
pub fn build(&self) -> Result<CreateHook<'a>, CreateHookBuilderError>
Trait Implementations§
source§impl<'a> Clone for CreateHookBuilder<'a>
impl<'a> Clone for CreateHookBuilder<'a>
source§fn clone(&self) -> CreateHookBuilder<'a>
fn clone(&self) -> CreateHookBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for CreateHookBuilder<'a>
impl<'a> RefUnwindSafe for CreateHookBuilder<'a>
impl<'a> Send for CreateHookBuilder<'a>
impl<'a> Sync for CreateHookBuilder<'a>
impl<'a> Unpin for CreateHookBuilder<'a>
impl<'a> UnwindSafe for CreateHookBuilder<'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> 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