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

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

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 with_merge_status_recheck(&mut self, value: bool) -> &mut Self[src]

Request that the merge status field be updated.

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 reviewer<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self[src]

Filter merge requests by reviewers.

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 environment<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Filter merge requests by deployed environment status.

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

Filter merge requests by those deployed after a point in time.

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

Filter merge requests by those deployed before a point in time.

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.

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

The scopes to look for search query within.

Trait Implementations

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

fn clone(&self) -> MergeRequestsBuilder<'a>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

fn default() -> MergeRequestsBuilder<'a>[src]

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.