[][src]Struct gitlab::webhooks::PushHook

pub struct PushHook {
    pub object_kind: String,
    pub before: ObjectId,
    pub after: ObjectId,
    pub ref_: String,
    pub checkout_sha: Option<ObjectId>,
    pub message: Option<String>,
    pub user_id: UserId,
    pub user_name: String,
    pub user_username: String,
    pub user_email: String,
    pub user_avatar: Option<String>,
    pub project_id: ProjectId,
    pub project: ProjectHookAttrs,
    pub commits: Vec<CommitHookAttrs>,
    pub total_commits_count: u64,
    // some fields omitted
}

A push hook.

Fields

object_kind: String

The event which occurred.

before: ObjectId

The old object ID of the ref before the push.

after: ObjectId

The new object ID of the ref after the push.

ref_: String

The name of the reference which has been pushed.

checkout_sha: Option<ObjectId>

The new object ID of the ref after the push.

message: Option<String>

The message for the push (used for annotated tags).

user_id: UserId

The ID of the user who pushed.

user_name: String

The name of the user who pushed.

user_username: String

The username of the user who pushed.

user_email: String

The email address of the user who pushed.

user_avatar: Option<String>

The URL of the user's avatar.

project_id: ProjectId

The ID of the project pushed to.

project: ProjectHookAttrs

Attributes of the project.

commits: Vec<CommitHookAttrs>

The commits pushed to the repository.

Limited to 20 commits.

total_commits_count: u64

The total number of commits pushed.

Trait Implementations

impl Clone for PushHook[src]

impl Debug for PushHook[src]

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

impl Serialize for PushHook[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.