[−][src]Struct gitlab::api::projects::merge_requests::MergeMergeRequestBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl<'a> Clone for MergeMergeRequestBuilder<'a>
[src]
fn clone(&self) -> MergeMergeRequestBuilder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Default for MergeMergeRequestBuilder<'a>
[src]
fn default() -> MergeMergeRequestBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for MergeMergeRequestBuilder<'a>
impl<'a> Send for MergeMergeRequestBuilder<'a>
impl<'a> Sync for MergeMergeRequestBuilder<'a>
impl<'a> Unpin for MergeMergeRequestBuilder<'a>
impl<'a> UnwindSafe for MergeMergeRequestBuilder<'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>,