Struct MergeRequestsBuilder

Source
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 approved<VALUE: Into<YesNo>>(&mut self, value: VALUE) -> &mut Self

Filter merge requests by approved state.

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.

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 returned 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 Self
where 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 Self
where L: Into<Cow<'a, str>>,

Filter merge requests with a given label.

Source

pub fn labels<I, L>(&mut self, iter: I) -> &mut Self
where 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 Self
where 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 Self
where 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).

Note: Mutually exclusive to querying by usernames.

Source

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

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

Note: Mutually exclusive to querying by usernames.

Source

pub fn approved_by_username<U>(&mut self, username: U) -> &mut Self
where U: Into<Cow<'a, str>>,

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

Note: Mutually exclusive to querying by IDs.

Source

pub fn approved_by_usernames<I, U>(&mut self, iter: I) -> &mut Self
where I: Iterator<Item = U>, U: Into<Cow<'a, str>>,

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

Note: Mutually exclusive to querying by IDs.

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 Self
where E: Into<Cow<'a, str>>,

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

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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
Source§

impl<T> ErasedDestructor for T
where T: 'static,