pub struct MergeRequestHookAttrs {
Show 33 fields pub source: Option<ProjectHookAttrs>, pub target: ProjectHookAttrs, pub last_commit: Option<CommitHookAttrs>, pub work_in_progress: bool, pub in_progress_merge_commit_sha: Option<ObjectId>, pub id: MergeRequestId, pub target_branch: String, pub target_project_id: ProjectId, pub source_branch: String, pub source_project_id: Option<ProjectId>, pub author_id: UserId, pub assignee_id: Option<UserId>, 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<UserId>, pub merge_commit_sha: Option<ObjectId>, pub merge_error: Option<Value>, pub merge_params: MergeRequestParams, pub merge_user_id: Option<UserId>, pub merge_when_pipeline_succeeds: bool, pub milestone_id: Option<MilestoneId>, pub oldrev: Option<ObjectId>, pub state: MergeRequestState, pub merge_status: MergeStatus, pub iid: MergeRequestInternalId, pub description: Option<String>, pub head_pipeline_id: Option<PipelineId>, pub url: Option<String>, pub action: Option<MergeRequestAction>, pub time_estimate: u64, /* private fields */
}
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>§work_in_progress: bool

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

§in_progress_merge_commit_sha: Option<ObjectId>

The object ID of the merge commit which is currently being handled.

§id: MergeRequestId

The ID of the merge request.

§target_branch: String

The target branch of the merge request.

§target_project_id: ProjectId

The ID of the target project.

§source_branch: String

The source branch of the merge request.

§source_project_id: Option<ProjectId>

The ID of the source project.

§author_id: UserId

The ID of the author of the merge request.

§assignee_id: Option<UserId>

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<UserId>

The ID of the user which last updated the merge request.

§merge_commit_sha: Option<ObjectId>

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<UserId>

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<MilestoneId>

The milestone of the merge request.

§oldrev: Option<ObjectId>§state: MergeRequestState

The state of the merge request.

§merge_status: MergeStatus

The merge status of the merge request.

§iid: MergeRequestInternalId

The user-visible ID of the merge request.

§description: Option<String>

The description of the merge request.

§head_pipeline_id: Option<PipelineId>

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

source§

fn clone(&self) -> MergeRequestHookAttrs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MergeRequestHookAttrs

source§

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

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for MergeRequestHookAttrs

source§

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

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for MergeRequestHookAttrs

source§

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,