pub struct MergeRequestsBuilder<'a> { /* private fields */ }
Expand description
Builder for MergeRequests
.
Implementations§
Source§impl<'a> MergeRequestsBuilder<'a>
impl<'a> MergeRequestsBuilder<'a>
Sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project to query for merge requests.
Sourcepub fn state(&mut self, value: MergeRequestState) -> &mut Self
pub fn state(&mut self, value: MergeRequestState) -> &mut Self
Filter merge requests based on state.
Sourcepub fn view(&mut self, value: MergeRequestView) -> &mut Self
pub fn view(&mut self, value: MergeRequestView) -> &mut Self
The view of the merge request.
This field can restrict the amount of data returned.
Sourcepub fn with_labels_details(&mut self, value: bool) -> &mut Self
pub fn with_labels_details(&mut self, value: bool) -> &mut Self
Include label details in the result.
Sourcepub fn with_merge_status_recheck(&mut self, value: bool) -> &mut Self
pub fn with_merge_status_recheck(&mut self, value: bool) -> &mut Self
Request that the merge status field be updated.
Sourcepub fn created_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn created_after(&mut self, value: DateTime<Utc>) -> &mut Self
Filter merge requests created after a point in time.
Sourcepub fn created_before(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn created_before(&mut self, value: DateTime<Utc>) -> &mut Self
Filter merge requests created before a point in time.
Sourcepub fn updated_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn updated_after(&mut self, value: DateTime<Utc>) -> &mut Self
Filter merge requests last updated after a point in time.
Sourcepub fn updated_before(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn updated_before(&mut self, value: DateTime<Utc>) -> &mut Self
Filter merge requests last updated before a point in time.
Sourcepub fn scope(&mut self, value: MergeRequestScope) -> &mut Self
pub fn scope(&mut self, value: MergeRequestScope) -> &mut Self
Filter merge requests within a scope.
Filter merge requests by author.
Sourcepub fn approved<VALUE: Into<YesNo>>(&mut self, value: VALUE) -> &mut Self
pub fn approved<VALUE: Into<YesNo>>(&mut self, value: VALUE) -> &mut Self
Filter merge requests by approved state.
Sourcepub fn reviewer<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn reviewer<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
Filter merge requests by reviewers.
Sourcepub fn source_branch<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source_branch<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Filter merge requests by source branch.
Sourcepub fn target_branch<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn target_branch<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Filter merge requests by target branch.
Sourcepub fn wip<VALUE: Into<YesNo>>(&mut self, value: VALUE) -> &mut Self
pub fn wip<VALUE: Into<YesNo>>(&mut self, value: VALUE) -> &mut Self
Filter merge requests by WIP state
Sourcepub fn environment<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn environment<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Filter merge requests by deployed environment.
Sourcepub fn deployed_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn deployed_after(&mut self, value: DateTime<Utc>) -> &mut Self
Filter merge requests by those deployed after a point in time.
Sourcepub fn deployed_before(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn deployed_before(&mut self, value: DateTime<Utc>) -> &mut Self
Filter merge requests by those deployed before a point in time.
Sourcepub fn search<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn search<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Filter merge requests with a search query.
Sourcepub fn order_by(&mut self, value: MergeRequestOrderBy) -> &mut Self
pub fn order_by(&mut self, value: MergeRequestOrderBy) -> &mut Self
Order results by a given key.
Sourcepub fn build(&self) -> Result<MergeRequests<'a>, MergeRequestsBuilderError>
pub fn build(&self) -> Result<MergeRequests<'a>, MergeRequestsBuilderError>
Source§impl<'a> MergeRequestsBuilder<'a>
impl<'a> MergeRequestsBuilder<'a>
Sourcepub fn iids<I>(&mut self, iter: I) -> &mut Self
pub fn iids<I>(&mut self, iter: I) -> &mut Self
Return merge requests with one of a set of internal IDs.
Sourcepub fn with_any_label(&mut self) -> &mut Self
pub fn with_any_label(&mut self) -> &mut Self
Filter merge requests with any label.
Sourcepub fn labels<I, L>(&mut self, iter: I) -> &mut Self
pub fn labels<I, L>(&mut self, iter: I) -> &mut Self
Filter merge requests with all of the given labels.
Sourcepub fn without_milestone(&mut self) -> &mut Self
pub fn without_milestone(&mut self) -> &mut Self
Filter merge requests without a milestone.
Sourcepub fn any_milestone(&mut self) -> &mut Self
pub fn any_milestone(&mut self) -> &mut Self
Filter merge requests with any milestone.
Sourcepub fn milestone<M>(&mut self, milestone: M) -> &mut Self
pub fn milestone<M>(&mut self, milestone: M) -> &mut Self
Filter merge requests with a given milestone.
Sourcepub fn unassigned(&mut self) -> &mut Self
pub fn unassigned(&mut self) -> &mut Self
Filter unassigned merge requests.
Sourcepub fn assignee_id(&mut self, assignee: u64) -> &mut Self
pub fn assignee_id(&mut self, assignee: u64) -> &mut Self
Filter merge requests assigned to a user (by ID).
Sourcepub fn no_approvers(&mut self) -> &mut Self
pub fn no_approvers(&mut self) -> &mut Self
Filter merge requests which have no approvers.
Sourcepub fn any_approvers(&mut self) -> &mut Self
pub fn any_approvers(&mut self) -> &mut Self
Filter merge requests which have any approver(s).
Sourcepub fn approver_id(&mut self, approver: u64) -> &mut Self
pub fn approver_id(&mut self, approver: u64) -> &mut Self
Filter merge requests with a specified approver (by ID).
Sourcepub fn approver_ids<I>(&mut self, iter: I) -> &mut Self
pub fn approver_ids<I>(&mut self, iter: I) -> &mut Self
Filter merge requests with specified approver (by ID).
Sourcepub fn no_approvals(&mut self) -> &mut Self
pub fn no_approvals(&mut self) -> &mut Self
Filter merge requests without approvals.
Sourcepub fn any_approvals(&mut self) -> &mut Self
pub fn any_approvals(&mut self) -> &mut Self
Filter merge requests with any approvals.
Sourcepub fn approved_by_id(&mut self, approved_by: u64) -> &mut Self
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.
Sourcepub fn approved_by_ids<I>(&mut self, iter: I) -> &mut Self
pub fn approved_by_ids<I>(&mut self, iter: I) -> &mut Self
Filter merge requests approved by a specific set of users (by ID).
Note: Mutually exclusive to querying by usernames.
Sourcepub fn approved_by_username<U>(&mut self, username: U) -> &mut Self
pub fn approved_by_username<U>(&mut self, username: U) -> &mut Self
Filter merge requests approved by a specific user (by username).
Note: Mutually exclusive to querying by IDs.
Sourcepub fn approved_by_usernames<I, U>(&mut self, iter: I) -> &mut Self
pub fn approved_by_usernames<I, U>(&mut self, iter: I) -> &mut Self
Filter merge requests approved by a specific set of users (by username).
Note: Mutually exclusive to querying by IDs.
Sourcepub fn no_reaction(&mut self) -> &mut Self
pub fn no_reaction(&mut self) -> &mut Self
Filter merge requests without a reaction by the API caller.
Sourcepub fn any_reaction(&mut self) -> &mut Self
pub fn any_reaction(&mut self) -> &mut Self
Filter merge requests with any reaction by the API caller.
Sourcepub fn my_reaction<E>(&mut self, emoji: E) -> &mut Self
pub fn my_reaction<E>(&mut self, emoji: E) -> &mut Self
Filter merge requests with a specific reaction by the API caller.
Trait Implementations§
Source§impl<'a> Clone for MergeRequestsBuilder<'a>
impl<'a> Clone for MergeRequestsBuilder<'a>
Source§fn clone(&self) -> MergeRequestsBuilder<'a>
fn clone(&self) -> MergeRequestsBuilder<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for MergeRequestsBuilder<'a>
impl<'a> RefUnwindSafe for MergeRequestsBuilder<'a>
impl<'a> Send for MergeRequestsBuilder<'a>
impl<'a> Sync for MergeRequestsBuilder<'a>
impl<'a> Unpin for MergeRequestsBuilder<'a>
impl<'a> UnwindSafe for MergeRequestsBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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