[][src]Struct gitlab::api::projects::merge_requests::MergeMergeRequestBuilder

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

Builder for MergeMergeRequest.

Implementations

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

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

The project with the merge request.

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

The ID of the merge request.

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

Commit message to use on the merge commit.

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

Commit message to use on the squash commit.

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

Squash source branch commits into a single merge commit?

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

Remove source branch on successful merge?

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

Merge when pipeline succeeds?

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

Git commit SHA to merge. If set, this must match the head of the branch being merged or the merge will fail.

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

Builds a new MergeMergeRequest.

Errors

If a required field has not been initialized.

Trait Implementations

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

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

Auto Trait Implementations

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.