Struct gitlab::api::projects::merge_requests::MergeRequestsBuilder
source · 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 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 status.
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 Selfwhere
I: Iterator<Item = u64>,
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.
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 label<L>(&mut self, label: L) -> &mut Selfwhere
L: Into<Cow<'a, str>>,
pub fn label<L>(&mut self, label: L) -> &mut Selfwhere L: Into<Cow<'a, str>>,
Filter merge requests with a given label.
sourcepub fn labels<I, L>(&mut self, iter: I) -> &mut Selfwhere
I: IntoIterator<Item = L>,
L: Into<Cow<'a, str>>,
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.
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 Selfwhere
M: Into<Cow<'a, str>>,
pub fn milestone<M>(&mut self, milestone: M) -> &mut Selfwhere M: Into<Cow<'a, str>>,
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 Selfwhere
I: Iterator<Item = u64>,
pub fn approver_ids<I>(&mut self, iter: I) -> &mut Selfwhere I: Iterator<Item = u64>,
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).
sourcepub fn approved_by_ids<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = u64>,
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).
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 Selfwhere
E: Into<Cow<'a, str>>,
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.
sourcepub fn search_in(&mut self, _: MergeRequestSearchScope) -> &mut Self
👎Deprecated: not actually supported by GitLab
pub fn search_in(&mut self, _: MergeRequestSearchScope) -> &mut Self
The scopes to look for search query within.
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 more