Struct gitlab::api::projects::merge_requests::MergeRequestsBuilder
source · [−]pub struct MergeRequestsBuilder<'a> { /* private fields */ }
Expand description
Builder for MergeRequests
.
Implementations
sourceimpl<'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>
sourceimpl<'a> MergeRequestsBuilder<'a>
impl<'a> MergeRequestsBuilder<'a>
sourcepub fn iids<I>(&mut self, iter: I) -> &mut Self where
I: Iterator<Item = u64>,
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.
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 Self where
L: Into<Cow<'a, str>>,
pub fn label<L>(&mut self, label: L) -> &mut Self where
L: Into<Cow<'a, str>>,
Filter merge requests with a given label.
sourcepub fn labels<I, L>(&mut self, iter: I) -> &mut Self where
I: IntoIterator<Item = L>,
L: Into<Cow<'a, str>>,
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.
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 where
M: Into<Cow<'a, str>>,
pub fn milestone<M>(&mut self, milestone: M) -> &mut Self where
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 Self where
I: Iterator<Item = u64>,
pub fn approver_ids<I>(&mut self, iter: I) -> &mut Self where
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 Self where
I: Iterator<Item = u64>,
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).
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 where
E: Into<Cow<'a, str>>,
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.
sourcepub fn search_in(&mut self, scope: MergeRequestSearchScope) -> &mut Self
pub fn search_in(&mut self, scope: MergeRequestSearchScope) -> &mut Self
The scopes to look for search query within.
Trait Implementations
sourceimpl<'a> Clone for MergeRequestsBuilder<'a>
impl<'a> Clone for MergeRequestsBuilder<'a>
sourcefn clone(&self) -> MergeRequestsBuilder<'a>
fn clone(&self) -> MergeRequestsBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more