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 merge_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn merge_after(&mut self, value: DateTime<Utc>) -> &mut Self
A timestamp before which the merge request may not be merged.
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 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 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
.
Sourcepub fn add_label<L>(&mut self, label: L) -> &mut Self
pub fn add_label<L>(&mut self, label: L) -> &mut Self
Add a label to the merge request.
This is an incremental addition to the existing set of labels on the merge request.
Sourcepub fn remove_label<L>(&mut self, label: L) -> &mut Self
pub fn remove_label<L>(&mut self, label: L) -> &mut Self
Remove a label from the merge request.
This is an incremental removal from the existing set of labels on the merge request.
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§const fn clone_from(&mut self, source: &Self)
const 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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