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 assignees<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = u64>,
pub fn assignees<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = u64>,
Assign merge request to users (by ID).
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 Selfwhere
I: Iterator<Item = u64>,
pub fn reviewers<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = u64>,
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 labels<I, L>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = L>,
L: Into<Cow<'a, str>>,
pub fn labels<I, L>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = L>,
L: Into<Cow<'a, str>>,
Add multiple labels
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 more