Struct gitlab::types::MergeRequestChanges[][src]

pub struct MergeRequestChanges {
Show fields 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 merged_at: Option<DateTime<Utc>>, pub closed_at: Option<DateTime<Utc>>, pub merged_by: Option<UserBasic>, pub closed_by: Option<UserBasic>, 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 reviewers: Option<Vec<UserBasic>>, pub source_project_id: ProjectId, pub target_project_id: ProjectId, pub labels: Vec<String>, pub work_in_progress: bool, pub allow_collaboration: Option<bool>, pub allow_maintainer_to_push: Option<bool>, pub milestone: Option<Milestone>, pub squash: bool, pub merge_when_pipeline_succeeds: bool, pub merge_status: MergeStatus, pub sha: Option<ObjectId>, pub diff_refs: Option<DiffRefs>, pub merge_error: Option<String>, pub rebase_in_progress: Option<bool>, pub merge_commit_sha: Option<ObjectId>, pub squash_commit_sha: Option<ObjectId>, pub subscribed: Option<bool>, pub time_stats: IssuableTimeStats, pub blocking_discussions_resolved: bool, pub changes_count: Option<String>, pub user_notes_count: u64, pub discussion_locked: Option<bool>, pub should_remove_source_branch: Option<bool>, pub force_remove_source_branch: Option<bool>, pub has_conflicts: bool, pub user: MergeRequestUser, pub web_url: String, pub pipeline: Option<PipelineBasic>, pub changes: Vec<RepoDiff>,
}

A merge request with changes.

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.

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: 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.

author: UserBasic

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.

reviewers: Option<Vec<UserBasic>>

The reviewers 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.

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: bool

Whether to squash commits on merge.

merge_when_pipeline_succeeds: bool

Whether the merge request will be merged once all jobs 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.

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>

GitLab does not include this in responses with lists of merge requests but does on an individual merge request.

time_stats: IssuableTimeStats

Time estimates.

blocking_discussions_resolved: bool

Whether or not all blocking discussions are resolved.

changes_count: Option<String>

The number of paths changed by the merge request.

user_notes_count: u64

The 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: bool

Whether the merge request currently has conflicts with the target branch.

user: MergeRequestUser

Information about current user’s access to the merge request.

web_url: String

The URL of the merge request.

pipeline: Option<PipelineBasic>

Basic pipeline information for the MR.

changes: Vec<RepoDiff>

Trait Implementations

impl Clone for MergeRequestChanges[src]

fn clone(&self) -> MergeRequestChanges[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for MergeRequestChanges[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for MergeRequestChanges[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl From<MergeRequestChanges> for MergeRequest[src]

fn from(mr: MergeRequestChanges) -> Self[src]

Performs the conversion.

impl Serialize for MergeRequestChanges[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]