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: StringThe event which occurred.
ref_: StringThe name of the reference that was tested.
tag: Stringbefore_sha: Stringsha: StringThe object ID that was built.
build_id: JobIdThe ID of the build.
build_name: StringThe 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: boolWhether the build is allowed to fail.
project_id: ProjectIdThe ID of the project.
user: BuildUserHookAttrsThe user which owns the build.
commit: BuildCommitHookAttrsThe commit which was built.
repository: BuildProjectHookAttrsThe repository the build is for.
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BuildHook
impl UnwindSafe for BuildHook
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
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