Struct gitlab::webhooks::MergeRequestHookAttrs
source · pub struct MergeRequestHookAttrs {Show 34 fields
pub source: Option<ProjectHookAttrs>,
pub target: ProjectHookAttrs,
pub last_commit: Option<CommitHookAttrs>,
pub draft: bool,
pub work_in_progress: bool,
pub in_progress_merge_commit_sha: Option<String>,
pub id: u64,
pub target_branch: String,
pub target_project_id: u64,
pub source_branch: String,
pub source_project_id: Option<u64>,
pub author_id: u64,
pub assignee_id: Option<u64>,
pub title: String,
pub created_at: HookDate,
pub updated_at: HookDate,
pub deleted_at: Option<HookDate>,
pub locked_at: Option<HookDate>,
pub updated_by_id: Option<u64>,
pub merge_commit_sha: Option<String>,
pub merge_error: Option<Value>,
pub merge_params: MergeRequestParams,
pub merge_user_id: Option<u64>,
pub merge_when_pipeline_succeeds: bool,
pub milestone_id: Option<u64>,
pub oldrev: Option<String>,
pub state: MergeRequestState,
pub merge_status: MergeStatus,
pub iid: u64,
pub description: Option<String>,
pub head_pipeline_id: Option<u64>,
pub url: Option<String>,
pub action: Option<MergeRequestAction>,
pub time_estimate: u64,
}
Expand description
Merge request information exposed in hooks.
Fields§
§source: Option<ProjectHookAttrs>
The source project of the merge request.
If this is None
, the source repository has been deleted.
target: ProjectHookAttrs
The target project of the merge request.
last_commit: Option<CommitHookAttrs>
§draft: bool
Whether the merge request is a draft or not.
work_in_progress: bool
Whether the merge request is a work-in-progress or not.
in_progress_merge_commit_sha: Option<String>
The object ID of the merge commit which is currently being handled.
id: u64
The ID of the merge request.
target_branch: String
The target branch of the merge request.
target_project_id: u64
The ID of the target project.
source_branch: String
The source branch of the merge request.
source_project_id: Option<u64>
The ID of the source project.
The ID of the author of the merge request.
assignee_id: Option<u64>
The ID of the assignee of the merge request.
title: String
The title of the merge request.
created_at: HookDate
When the merge request was created.
updated_at: HookDate
When the merge request was last updated.
deleted_at: Option<HookDate>
When the merge request was deleted.
locked_at: Option<HookDate>
When the merge request was locked.
updated_by_id: Option<u64>
The ID of the user which last updated the merge request.
merge_commit_sha: Option<String>
The object ID of the commit which merged the merge request.
merge_error: Option<Value>
§merge_params: MergeRequestParams
The parameters for merging the merge request.
merge_user_id: Option<u64>
The user which merged the merge request.
merge_when_pipeline_succeeds: bool
Whether the merge request will be merged once all builds succeed or not.
milestone_id: Option<u64>
The milestone of the merge request.
oldrev: Option<String>
§state: MergeRequestState
The state of the merge request.
merge_status: MergeStatus
The merge status of the merge request.
iid: u64
The user-visible ID of the merge request.
description: Option<String>
The description of the merge request.
head_pipeline_id: Option<u64>
The newest pipeline, if any
url: Option<String>
The URL of the merge request.
action: Option<MergeRequestAction>
The type of action which caused the hook.
time_estimate: u64
Trait Implementations§
source§impl Clone for MergeRequestHookAttrs
impl Clone for MergeRequestHookAttrs
source§fn clone(&self) -> MergeRequestHookAttrs
fn clone(&self) -> MergeRequestHookAttrs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MergeRequestHookAttrs
impl Debug for MergeRequestHookAttrs
source§impl<'de> Deserialize<'de> for MergeRequestHookAttrs
impl<'de> Deserialize<'de> for MergeRequestHookAttrs
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for MergeRequestHookAttrs
impl RefUnwindSafe for MergeRequestHookAttrs
impl Send for MergeRequestHookAttrs
impl Sync for MergeRequestHookAttrs
impl Unpin for MergeRequestHookAttrs
impl UnwindSafe for MergeRequestHookAttrs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more