Struct gitlab::types::MergeRequest
[−]
[src]
pub struct MergeRequest { pub id: MergeRequestId, pub iid: MergeRequestInternalId, pub project_id: ProjectId, pub title: String, pub description: Option<String>, pub state: MergeRequestState, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, pub target_branch: String, pub source_branch: String, pub upvotes: u64, pub downvotes: u64, pub author: UserBasic, pub assignee: Option<UserBasic>, pub assignees: Option<Vec<UserBasic>>, pub source_project_id: ProjectId, pub target_project_id: ProjectId, pub labels: Vec<String>, pub work_in_progress: bool, pub milestone: Option<Milestone>, pub merge_when_pipeline_succeeds: bool, pub merge_status: MergeStatus, pub sha: Option<ObjectId>, pub merge_commit_sha: Option<ObjectId>, pub subscribed: Option<bool>, pub user_notes_count: u64, pub should_remove_source_branch: Option<bool>, pub force_remove_source_branch: Option<bool>, pub web_url: String, }
A merge request.
Fields
id: MergeRequestId
The ID of the merge request.
iid: MergeRequestInternalId
The user-visible ID of the merge request.
project_id: ProjectId
The ID of the project.
title: String
The title of the merge request.
description: Option<String>
The description of the merge request.
state: MergeRequestState
The 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.
target_branch: String
The target branch of the merge request.
source_branch: String
The source branch of the merge request.
upvotes: u64
The number of upvotes for the merge request.
downvotes: u64
The 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: ProjectId
The ID of the project hosting the source branch.
target_project_id: ProjectId
The ID of the project hosting the target branch.
labels: Vec<String>
The labels attached to the merge request.
work_in_progress: bool
Whether the merge request is a work-in-progress or not.
milestone: Option<Milestone>
The milestone of the merge request.
merge_when_pipeline_succeeds: bool
Whether the merge request will be merged once all pipelines succeed or not.
merge_status: MergeStatus
The 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.
merge_commit_sha: Option<ObjectId>
The object ID of the commit which merged the merge request.
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.
user_notes_count: u64
The number of comments on the merge request.
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).
web_url: String
The URL of the merge request.
Trait Implementations
impl Debug for MergeRequest
[src]
impl Clone for MergeRequest
[src]
fn clone(&self) -> MergeRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<MergeRequestChanges> for MergeRequest
[src]
fn from(mr: MergeRequestChanges) -> Self
Performs the conversion.