[−][src]Struct gitlab::api::projects::merge_requests::EditMergeRequestBuilder
Builder for EditMergeRequest
.
Implementations
impl<'a> EditMergeRequestBuilder<'a>
[src]
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
[src]
The project to open the merge requset from.
pub fn merge_request(&mut self, value: u64) -> &mut Self
[src]
The merge request to edit.
pub fn target_branch<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The name of the target branch for the merge request.
pub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
[src]
The title for the merge request.
pub fn milestone_id(&mut self, value: u64) -> &mut Self
[src]
The ID of the milestone to add the merge request to.
pub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The description of the merge request.
pub fn state_event(&mut self, value: MergeRequestStateEvent) -> &mut Self
[src]
Change the state of the merge request.
pub fn remove_source_branch(&mut self, value: bool) -> &mut Self
[src]
Whether to remove the source branch once merged or not.
pub fn squash(&mut self, value: bool) -> &mut Self
[src]
Whether to squash the branch when merging or not.
pub fn discussion_locked(&mut self, value: bool) -> &mut Self
[src]
Whether to lock discussion or not..
pub fn allow_collaboration(&mut self, value: bool) -> &mut Self
[src]
Whether to allow collaboration with maintainers of the target project or not.
pub fn allow_maintainer_to_push(&mut self, value: bool) -> &mut Self
[src]
Whether to allow collaboration with maintainers of the target project or not.
pub fn build(&self) -> Result<EditMergeRequest<'a>, String>
[src]
impl<'a> EditMergeRequestBuilder<'a>
[src]
pub fn unassigned(&mut self) -> &mut Self
[src]
Unset assignee(s) of merge request
pub fn assignee(&mut self, assignee: u64) -> &mut Self
[src]
Assign merge request to a user (by ID).
pub fn assignees<I>(&mut self, iter: I) -> &mut Self where
I: Iterator<Item = u64>,
[src]
I: Iterator<Item = u64>,
Assign merge request to users (by ID).
pub fn remove_labels(&mut self) -> &mut Self
[src]
Clear all labels
pub fn label<L>(&mut self, label: L) -> &mut Self where
L: Into<Cow<'a, str>>,
[src]
L: Into<Cow<'a, str>>,
Add a label
pub fn labels<I, L>(&mut self, iter: I) -> &mut Self where
I: Iterator<Item = L>,
L: Into<Cow<'a, str>>,
[src]
I: Iterator<Item = L>,
L: Into<Cow<'a, str>>,
Add multiple labels
Trait Implementations
impl<'a> Clone for EditMergeRequestBuilder<'a>
[src]
fn clone(&self) -> EditMergeRequestBuilder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Default for EditMergeRequestBuilder<'a>
[src]
fn default() -> EditMergeRequestBuilder<'a>
[src]
Auto Trait Implementations
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
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>,