[][src]Struct gitlab::api::projects::hooks::CreateHookBuilder

pub struct CreateHookBuilder<'a> { /* fields omitted */ }

Builder for CreateHook.

Implementations

impl<'a> CreateHookBuilder<'a>[src]

pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self[src]

The project to create a webhook within.

pub fn url<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

The URL for the webhook to contact.

pub fn push_events(&mut self, value: bool) -> &mut Self[src]

Whether to send push events for this webhook or not.

pub fn push_events_branch_filter<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Filter which branches send push events for this webhook.

pub fn issues_events(&mut self, value: bool) -> &mut Self[src]

Whether to send issue events for this webhook or not.

pub fn confidential_issues_events(&mut self, value: bool) -> &mut Self[src]

Whether to send confidential issue events for this webhook or not.

pub fn merge_requests_events(&mut self, value: bool) -> &mut Self[src]

Whether to send merge request events for this webhook or not.

pub fn tag_push_events(&mut self, value: bool) -> &mut Self[src]

Whether to send tag events for this webhook or not.

pub fn note_events(&mut self, value: bool) -> &mut Self[src]

Whether to send note (comment) events for this webhook or not.

pub fn job_events(&mut self, value: bool) -> &mut Self[src]

Whether to send job events for this webhook or not.

pub fn pipeline_events(&mut self, value: bool) -> &mut Self[src]

Whether to send pipeline events for this webhook or not.

pub fn wiki_page_events(&mut self, value: bool) -> &mut Self[src]

Whether to send wiki page events for this webhook or not.

pub fn enable_ssl_verification(&mut self, value: bool) -> &mut Self[src]

Whether to verify SSL/TLS certificates for the webhook endpoint or not.

pub fn token<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

A secret token to include in webhook deliveries.

This may be used to ensure that the webhook is actually coming from the GitLab instance.

pub fn build(&self) -> Result<CreateHook<'a>, String>[src]

Builds a new CreateHook.

Errors

If a required field has not been initialized.

Trait Implementations

impl<'a> Clone for CreateHookBuilder<'a>[src]

impl<'a> Default for CreateHookBuilder<'a>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.