[−][src]Struct gitlab::api::projects::merge_requests::CreateMergeRequestBuilder
Builder for CreateMergeRequest
.
Implementations
impl<'a> CreateMergeRequestBuilder<'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 source_branch<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The name of the source branch for the merge request.
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 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 target_project_id(&mut self, value: u64) -> &mut Self
[src]
The ID of the target project 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 remove_source_branch(&mut self, value: bool) -> &mut Self
[src]
Whether to remove the source branch once merged 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 squash(&mut self, value: bool) -> &mut Self
[src]
Whether to squash the branch when merging 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<CreateMergeRequest<'a>, String>
[src]
impl<'a> CreateMergeRequestBuilder<'a>
[src]
pub fn unassigned(&mut self) -> &mut Self
[src]
Filter unassigned merge requests.
pub fn assignee(&mut self, assignee: u64) -> &mut Self
[src]
Filter merge requests assigned 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>,
Filter merge requests assigned to a users (by ID).
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 CreateMergeRequestBuilder<'a>
[src]
fn clone(&self) -> CreateMergeRequestBuilder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Default for CreateMergeRequestBuilder<'a>
[src]
fn default() -> CreateMergeRequestBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateMergeRequestBuilder<'a>
impl<'a> Send for CreateMergeRequestBuilder<'a>
impl<'a> Sync for CreateMergeRequestBuilder<'a>
impl<'a> Unpin for CreateMergeRequestBuilder<'a>
impl<'a> UnwindSafe for CreateMergeRequestBuilder<'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>,