[−][src]Struct gitlab::types::MergeRequest
A merge request.
Fields
id: MergeRequestIdThe ID of the merge request.
iid: MergeRequestInternalIdThe user-visible ID of the merge request.
project_id: ProjectIdThe ID of the project.
title: StringThe title of the merge request.
description: Option<String>The description of the merge request.
state: MergeRequestStateThe state of the merge request.
created_at: DateTime<Utc>When the merge request was created.
updated_at: DateTime<Utc>When the merge request was last updated.
merged_at: Option<DateTime<Utc>>When the merge request was merged.
closed_at: Option<DateTime<Utc>>When the merge request was closed.
merged_by: Option<UserBasic>The user that merged the merge request.
closed_by: Option<UserBasic>The user that closed the merge request.
target_branch: StringThe target branch of the merge request.
source_branch: StringThe source branch of the merge request.
upvotes: u64The number of upvotes for the merge request.
downvotes: u64The number of downvotes against the merge request.
The author of the merge request.
assignee: Option<UserBasic>The assignee of the merge request.
assignees: Option<Vec<UserBasic>>The assignees of the merge request.
source_project_id: ProjectIdThe ID of the project hosting the source branch.
target_project_id: ProjectIdThe ID of the project hosting the target branch.
labels: Vec<String>The labels attached to the merge request.
work_in_progress: boolWhether the merge request is a work-in-progress or not.
allow_collaboration: Option<bool>Whether the merge request allows a maintainer to collaborate.
allow_maintainer_to_push: Option<bool>Whether the merge request allows a maintainer to push (deprecated).
milestone: Option<Milestone>The milestone of the merge request.
squash: boolWhether to squash commits on merge.
merge_when_pipeline_succeeds: boolWhether the merge request will be merged once all pipelines succeed or not.
merge_status: MergeStatusThe status of the merge request.
sha: Option<ObjectId>The object ID of the head of the source branch.
This is None if the source branch has been deleted.
diff_refs: Option<DiffRefs>The commits used to construct the merge request diffs.
merge_error: Option<String>Description of error if MR failed to merge.
rebase_in_progress: Option<bool>Whether a rebase is in progress.
merge_commit_sha: Option<ObjectId>The object ID of the commit which merged the merge request.
squash_commit_sha: Option<ObjectId>The object ID of the merge request squash commit.
subscribed: Option<bool>Whether the current user is subscribed or not. GitLab does not include this in responses with lists of merge requests but does on an individual merge request.
time_stats: IssuableTimeStatsTime estimates.
blocking_discussions_resolved: boolWhether or not all blocking discussions are resolved.
changes_count: Option<String>The number of paths changed by the merge request.
This is an integer suffixed by + if there are more files changed than some threshold
(probably determined by a timeout).
user_notes_count: u64The number of comments on the merge request.
discussion_locked: Option<bool>Whether the discussion has been locked.
should_remove_source_branch: Option<bool>Whether the merge request should be deleted or not (set by the merger).
force_remove_source_branch: Option<bool>Whether the merge request should be deleted or not (set by the author).
has_conflicts: boolWhether the merge request currently has conflicts with the target branch.
user: Option<MergeRequestUser>Information about current user's access to the merge request.
web_url: StringThe URL of the merge request.
pipeline: Option<PipelineBasic>Basic pipeline information for the MR.
Trait Implementations
impl Clone for MergeRequest[src]
fn clone(&self) -> MergeRequest[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for MergeRequest[src]
impl<'de> Deserialize<'de> for MergeRequest[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl From<MergeRequestChanges> for MergeRequest[src]
fn from(mr: MergeRequestChanges) -> Self[src]
impl Serialize for MergeRequest[src]
Auto Trait Implementations
impl RefUnwindSafe for MergeRequest
impl Send for MergeRequest
impl Sync for MergeRequest
impl Unpin for MergeRequest
impl UnwindSafe for MergeRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,