Struct gitlab::api::projects::merge_requests::EditMergeRequestBuilder
source · pub struct EditMergeRequestBuilder<'a> { /* private fields */ }
Expand description
Builder for EditMergeRequest
.
Implementations§
source§impl<'a> EditMergeRequestBuilder<'a>
impl<'a> EditMergeRequestBuilder<'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 to open the merge requset from.
sourcepub fn merge_request(&mut self, value: u64) -> &mut Self
pub fn merge_request(&mut self, value: u64) -> &mut Self
The merge request to edit.
sourcepub fn target_branch<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn target_branch<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The name of the target branch for the merge request.
sourcepub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The title for the merge request.
sourcepub fn milestone_id(&mut self, value: u64) -> &mut Self
pub fn milestone_id(&mut self, value: u64) -> &mut Self
The ID of the milestone to add the merge request to.
sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The description of the merge request.
sourcepub fn state_event(&mut self, value: MergeRequestStateEvent) -> &mut Self
pub fn state_event(&mut self, value: MergeRequestStateEvent) -> &mut Self
Change the state of the merge request.
sourcepub fn remove_source_branch(&mut self, value: bool) -> &mut Self
pub fn remove_source_branch(&mut self, value: bool) -> &mut Self
Whether to remove the source branch once merged or not.
sourcepub fn squash(&mut self, value: bool) -> &mut Self
pub fn squash(&mut self, value: bool) -> &mut Self
Whether to squash the branch when merging or not.
sourcepub fn discussion_locked(&mut self, value: bool) -> &mut Self
pub fn discussion_locked(&mut self, value: bool) -> &mut Self
Whether to lock discussion or not..
sourcepub fn allow_collaboration(&mut self, value: bool) -> &mut Self
pub fn allow_collaboration(&mut self, value: bool) -> &mut Self
Whether to allow collaboration with maintainers of the target project or not.
sourcepub fn allow_maintainer_to_push(&mut self, value: bool) -> &mut Self
pub fn allow_maintainer_to_push(&mut self, value: bool) -> &mut Self
Whether to allow collaboration with maintainers of the target project or not.
sourcepub fn build(
&self
) -> Result<EditMergeRequest<'a>, EditMergeRequestBuilderError>
pub fn build( &self ) -> Result<EditMergeRequest<'a>, EditMergeRequestBuilderError>
source§impl<'a> EditMergeRequestBuilder<'a>
impl<'a> EditMergeRequestBuilder<'a>
sourcepub fn unassigned(&mut self) -> &mut Self
pub fn unassigned(&mut self) -> &mut Self
Unset assignee(s) of merge request
sourcepub fn without_reviewer(&mut self) -> &mut Self
pub fn without_reviewer(&mut self) -> &mut Self
Filter merge requests without a reviewer.
sourcepub fn reviewer(&mut self, reviewer: u64) -> &mut Self
pub fn reviewer(&mut self, reviewer: u64) -> &mut Self
Filter merge requests reviewed by a user (by ID).
sourcepub fn reviewers<I>(&mut self, iter: I) -> &mut Self
pub fn reviewers<I>(&mut self, iter: I) -> &mut Self
Filter merge requests reviewed by users (by ID).
sourcepub fn remove_labels(&mut self) -> &mut Self
👎Deprecated: use clear_labels
instead
pub fn remove_labels(&mut self) -> &mut Self
clear_labels
insteadRemove all labels from the issue.
sourcepub fn clear_labels(&mut self) -> &mut Self
pub fn clear_labels(&mut self) -> &mut Self
Remove all labels from the issue.
sourcepub fn label<L>(&mut self, label: L) -> &mut Self
pub fn label<L>(&mut self, label: L) -> &mut Self
Add a label
Note that the list of labels sent will replace the set on the instance. This only adds it to the list of labels to add to the set before sending it to the instance.
See: add_label
.
sourcepub fn labels<I, L>(&mut self, iter: I) -> &mut Self
pub fn labels<I, L>(&mut self, iter: I) -> &mut Self
Add multiple labels
Note that the list of labels sent will replace the set on the instance. This only adds it to the list of labels to add to the set before sending it to the instance.
See: add_label
.
Trait Implementations§
source§impl<'a> Clone for EditMergeRequestBuilder<'a>
impl<'a> Clone for EditMergeRequestBuilder<'a>
source§fn clone(&self) -> EditMergeRequestBuilder<'a>
fn clone(&self) -> EditMergeRequestBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for EditMergeRequestBuilder<'a>
impl<'a> RefUnwindSafe for EditMergeRequestBuilder<'a>
impl<'a> Send for EditMergeRequestBuilder<'a>
impl<'a> Sync for EditMergeRequestBuilder<'a>
impl<'a> Unpin for EditMergeRequestBuilder<'a>
impl<'a> UnwindSafe for EditMergeRequestBuilder<'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
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>
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>
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