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

Builder for MergeRequests.

Implementations§

source§

impl<'a> MergeRequestsBuilder<'a>

source

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

The project to query for merge requests.

source

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

Filter merge requests based on state.

source

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

The view of the merge request.

This field can restrict the amount of data returned.

source

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

Include label details in the result.

source

pub fn with_merge_status_recheck(&mut self, value: bool) -> &mut Self

Request that the merge status field be updated.

source

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

Filter merge requests created after a point in time.

source

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

Filter merge requests created before a point in time.

source

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

Filter merge requests last updated after a point in time.

source

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

Filter merge requests last updated before a point in time.

source

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

Filter merge requests within a scope.

source

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

Filter merge requests by author.

source

pub fn reviewer<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self

Filter merge requests by reviewers.

source

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

Filter merge requests by source branch.

source

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

Filter merge requests by target branch.

source

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

Filter merge requests by WIP state

source

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

Filter merge requests by deployed environment status.

source

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

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

source

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

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

source

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

Filter merge requests with a search query.

source

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

Order results by a given key.

source

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

The sort order for return results.

source

pub fn build(&self) -> Result<MergeRequests<'a>, MergeRequestsBuilderError>

Builds a new MergeRequests.

Errors

If a required field has not been initialized.

source§

impl<'a> MergeRequestsBuilder<'a>

source

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

Return a merge request with an internal ID.

source

pub fn iids<I>(&mut self, iter: I) -> &mut Selfwhere I: Iterator<Item = u64>,

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

source

pub fn unlabeled(&mut self) -> &mut Self

Filter unlabeled merge requests.

source

pub fn with_any_label(&mut self) -> &mut Self

Filter merge requests with any label.

source

pub fn label<L>(&mut self, label: L) -> &mut Selfwhere L: Into<Cow<'a, str>>,

Filter merge requests with a given label.

source

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

Filter merge requests with all of the given labels.

source

pub fn without_milestone(&mut self) -> &mut Self

Filter merge requests without a milestone.

source

pub fn any_milestone(&mut self) -> &mut Self

Filter merge requests with any milestone.

source

pub fn milestone<M>(&mut self, milestone: M) -> &mut Selfwhere M: Into<Cow<'a, str>>,

Filter merge requests with a given milestone.

source

pub fn unassigned(&mut self) -> &mut Self

Filter unassigned merge requests.

source

pub fn assigned(&mut self) -> &mut Self

Filter assigned merge requests.

source

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

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

source

pub fn no_approvers(&mut self) -> &mut Self

Filter merge requests which have no approvers.

source

pub fn any_approvers(&mut self) -> &mut Self

Filter merge requests which have any approver(s).

source

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

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

source

pub fn approver_ids<I>(&mut self, iter: I) -> &mut Selfwhere I: Iterator<Item = u64>,

Filter merge requests with specified approver (by ID).

source

pub fn no_approvals(&mut self) -> &mut Self

Filter merge requests without approvals.

source

pub fn any_approvals(&mut self) -> &mut Self

Filter merge requests with any approvals.

source

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

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

source

pub fn approved_by_ids<I>(&mut self, iter: I) -> &mut Selfwhere I: Iterator<Item = u64>,

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

source

pub fn no_reaction(&mut self) -> &mut Self

Filter merge requests without a reaction by the API caller.

source

pub fn any_reaction(&mut self) -> &mut Self

Filter merge requests with any reaction by the API caller.

source

pub fn my_reaction<E>(&mut self, emoji: E) -> &mut Selfwhere E: Into<Cow<'a, str>>,

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

source

pub fn search_in(&mut self, _: MergeRequestSearchScope) -> &mut Self

👎Deprecated: not actually supported by GitLab

The scopes to look for search query within.

Trait Implementations§

source§

impl<'a> Clone for MergeRequestsBuilder<'a>

source§

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

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Default for MergeRequestsBuilder<'a>

source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more