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

The ID of the merge request.

The user-visible ID of the merge request.

The ID of the project.

The title of the merge request.

The description of the merge request.

The state of the merge request.

When the merge request was created.

When the merge request was last updated.

The target branch of the merge request.

The source branch of the merge request.

The number of upvotes for the merge request.

The number of downvotes against the merge request.

The author of the merge request.

The assignee of the merge request.

The assignees of the merge request.

The ID of the project hosting the source branch.

The ID of the project hosting the target branch.

The labels attached to the merge request.

Whether the merge request is a work-in-progress or not.

The milestone of the merge request.

Whether the merge request will be merged once all pipelines succeed or not.

The status of the merge request.

The object ID of the head of the source branch.

This is None if the source branch has been deleted.

The object ID of the commit which merged the merge request.

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.

The number of comments on the merge request.

Whether the merge request should be deleted or not (set by the merger).

Whether the merge request should be deleted or not (set by the author).

The URL of the merge request.

Trait Implementations

impl Debug for MergeRequest
[src]

Formats the value using the given formatter.

impl Clone for MergeRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<MergeRequestChanges> for MergeRequest
[src]

Performs the conversion.