Struct gitlab::api::projects::merge_requests::MergeMergeRequestBuilder
source · pub struct MergeMergeRequestBuilder<'a> { /* private fields */ }
Expand description
Builder for MergeMergeRequest
.
Implementations§
source§impl<'a> MergeMergeRequestBuilder<'a>
impl<'a> MergeMergeRequestBuilder<'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 with the merge request.
sourcepub fn merge_request(&mut self, value: u64) -> &mut Self
pub fn merge_request(&mut self, value: u64) -> &mut Self
The ID of the merge request.
sourcepub fn merge_commit_message<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn merge_commit_message<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
Commit message to use on the merge commit.
sourcepub fn squash_commit_message<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn squash_commit_message<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
Commit message to use on the squash commit.
sourcepub fn squash(&mut self, value: bool) -> &mut Self
pub fn squash(&mut self, value: bool) -> &mut Self
Squash source branch commits into a single merge commit?
sourcepub fn should_remove_source_branch(&mut self, value: bool) -> &mut Self
pub fn should_remove_source_branch(&mut self, value: bool) -> &mut Self
Remove source branch on successful merge?
sourcepub fn merge_when_pipeline_succeeds(&mut self, value: bool) -> &mut Self
pub fn merge_when_pipeline_succeeds(&mut self, value: bool) -> &mut Self
Merge when pipeline succeeds?
sourcepub fn sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Git commit SHA to merge. If set, this must match the head of the branch being merged or the merge will fail.
sourcepub fn build(
&self
) -> Result<MergeMergeRequest<'a>, MergeMergeRequestBuilderError>
pub fn build( &self ) -> Result<MergeMergeRequest<'a>, MergeMergeRequestBuilderError>
Trait Implementations§
source§impl<'a> Clone for MergeMergeRequestBuilder<'a>
impl<'a> Clone for MergeMergeRequestBuilder<'a>
source§fn clone(&self) -> MergeMergeRequestBuilder<'a>
fn clone(&self) -> MergeMergeRequestBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for MergeMergeRequestBuilder<'a>
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§
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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