Struct gitlab::webhooks::BuildHook[][src]

pub struct BuildHook {
Show 16 fields pub object_kind: String, pub ref_: String, pub tag: String, pub before_sha: String, pub sha: String, pub build_id: JobId, pub build_name: String, pub build_stage: String, pub build_started_at: Option<HookDate>, pub build_finished_at: Option<HookDate>, pub build_duration: Option<u64>, pub build_allow_failure: bool, pub project_id: ProjectId, pub user: BuildUserHookAttrs, pub commit: BuildCommitHookAttrs, pub repository: BuildProjectHookAttrs,
}
Expand description

A build hook.

Fields

object_kind: String

The event which occurred.

ref_: String

The name of the reference that was tested.

tag: Stringbefore_sha: Stringsha: String

The object ID that was built.

build_id: JobId

The ID of the build.

build_name: String

The name of the build.

build_stage: Stringbuild_started_at: Option<HookDate>

When the build started.

build_finished_at: Option<HookDate>

When the build completed.

build_duration: Option<u64>build_allow_failure: bool

Whether the build is allowed to fail.

project_id: ProjectId

The ID of the project.

user: BuildUserHookAttrs

The user which owns the build.

commit: BuildCommitHookAttrs

The commit which was built.

repository: BuildProjectHookAttrs

The repository the build is for.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

The resulting type after obtaining ownership.

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

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

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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