Struct gitlab::webhooks::PushHook

source ·
pub struct PushHook {
Show 15 fields 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, /* private fields */
}
Expand description

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§

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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.