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§
source§impl<'de> Deserialize<'de> for PushHook
impl<'de> Deserialize<'de> for PushHook
source§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