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

pub struct BuildHook {
    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,
}

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

impl Clone for BuildHook[src]

impl Debug for BuildHook[src]

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

impl Serialize for BuildHook[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.