[−][src]Struct gitlab::api::projects::hooks::CreateHookBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl<'a> Clone for CreateHookBuilder<'a>
[src]
fn clone(&self) -> CreateHookBuilder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Default for CreateHookBuilder<'a>
[src]
fn default() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,