[][src]Struct gitlab::api::projects::merge_requests::MergeRequestsBuilder

pub struct MergeRequestsBuilder<'a> { /* fields omitted */ }

Builder for MergeRequests.

Implementations

impl<'a> MergeRequestsBuilder<'a>[src]

pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self[src]

The project to query for merge requests.

pub fn state(&mut self, value: MergeRequestState) -> &mut Self[src]

Filter merge requests based on state.

pub fn view(&mut self, value: MergeRequestView) -> &mut Self[src]

The view of the merge request.

This field can restrict the amount of data returned.

pub fn with_labels_details(&mut self, value: bool) -> &mut Self[src]

Include label details in the result.

pub fn created_after(&mut self, value: DateTime<Utc>) -> &mut Self[src]

Filter merge requests created after a point in time.

pub fn created_before(&mut self, value: DateTime<Utc>) -> &mut Self[src]

Filter merge requests created before a point in time.

pub fn updated_after(&mut self, value: DateTime<Utc>) -> &mut Self[src]

Filter merge requests last updated after a point in time.

pub fn updated_before(&mut self, value: DateTime<Utc>) -> &mut Self[src]

Filter merge requests last updated before a point in time.

pub fn scope(&mut self, value: MergeRequestScope) -> &mut Self[src]

Filter merge requests within a scope.

pub fn author<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self[src]

Filter merge requests by author.

pub fn source_branch<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Filter merge requests by source branch.

pub fn target_branch<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Filter merge requests by target branch.

pub fn wip<VALUE: Into<YesNo>>(&mut self, value: VALUE) -> &mut Self[src]

Filter merge requests by WIP state

pub fn search<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

Filter merge requests with a search query.

pub fn order_by(&mut self, value: MergeRequestOrderBy) -> &mut Self[src]

Order results by a given key.

pub fn sort(&mut self, value: SortOrder) -> &mut Self[src]

The sort order for return results.

pub fn build(&self) -> Result<MergeRequests<'a>, String>[src]

Builds a new MergeRequests.

Errors

If a required field has not been initialized.

impl<'a> MergeRequestsBuilder<'a>[src]

pub fn iid(&mut self, iid: u64) -> &mut Self[src]

Return a merge request with an internal ID.

pub fn iids<I>(&mut self, iter: I) -> &mut Self where
    I: Iterator<Item = u64>, 
[src]

Return merge requests with one of a set of internal IDs.

pub fn unlabeled(&mut self) -> &mut Self[src]

Filter unlabeled merge requests.

pub fn with_any_label(&mut self) -> &mut Self[src]

Filter merge requests with any label.

pub fn label<L>(&mut self, label: L) -> &mut Self where
    L: Into<Cow<'a, str>>, 
[src]

Filter merge requests with a given label.

pub fn labels<I, L>(&mut self, iter: I) -> &mut Self where
    I: IntoIterator<Item = L>,
    L: Into<Cow<'a, str>>, 
[src]

Filter merge requests with all of the given labels.

pub fn without_milestone(&mut self) -> &mut Self[src]

Filter merge requests without a milestone.

pub fn any_milestone(&mut self) -> &mut Self[src]

Filter merge requests with any milestone.

pub fn milestone<M>(&mut self, milestone: M) -> &mut Self where
    M: Into<Cow<'a, str>>, 
[src]

Filter merge requests with a given milestone.

pub fn unassigned(&mut self) -> &mut Self[src]

Filter unassigned merge requests.

pub fn assigned(&mut self) -> &mut Self[src]

Filter assigned merge requests.

pub fn assignee_id(&mut self, assignee: u64) -> &mut Self[src]

Filter merge requests assigned to a user (by ID).

pub fn no_approvers(&mut self) -> &mut Self[src]

Filter merge requests which have no approvers.

pub fn any_approvers(&mut self) -> &mut Self[src]

Filter merge requests which have any approver(s).

pub fn approver_id(&mut self, approver: u64) -> &mut Self[src]

Filter merge requests with a specified approver (by ID).

pub fn approver_ids<I>(&mut self, iter: I) -> &mut Self where
    I: Iterator<Item = u64>, 
[src]

Filter merge requests with specified approver (by ID).

pub fn no_approvals(&mut self) -> &mut Self[src]

Filter merge requests without approvals.

pub fn any_approvals(&mut self) -> &mut Self[src]

Filter merge requests with any approvals.

pub fn approved_by_id(&mut self, approved_by: u64) -> &mut Self[src]

Filter merge requests approved by a specific user (by ID).

pub fn approved_by_ids<I>(&mut self, iter: I) -> &mut Self where
    I: Iterator<Item = u64>, 
[src]

Filter merge requests approved by a specific set of users (by ID).

pub fn no_reaction(&mut self) -> &mut Self[src]

Filter merge requests without a reaction by the API caller.

pub fn any_reaction(&mut self) -> &mut Self[src]

Filter merge requests with any reaction by the API caller.

pub fn my_reaction<E>(&mut self, emoji: E) -> &mut Self where
    E: Into<Cow<'a, str>>, 
[src]

Filter merge requests with a specific reaction by the API caller.

Trait Implementations

impl<'a> Clone for MergeRequestsBuilder<'a>[src]

impl<'a> Default for MergeRequestsBuilder<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.