Struct gitlab::types::MergeRequest
[−]
[src]
pub struct MergeRequest {
pub id: MergeRequestId,
pub iid: u64,
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 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_build_succeeds: bool,
pub merge_status: MergeStatus,
pub sha: Option<ObjectId>,
pub merge_commit_sha: Option<ObjectId>,
pub subscribed: 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: u64
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.
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_build_succeeds: bool
Whether the merge request will be merged once all builds 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: bool
Whether the current user is subscribed or not.
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.