pub struct PushEvent {Show 14 fields
pub git_ref: String,
pub before: Oid,
pub after: Oid,
pub created: bool,
pub deleted: bool,
pub forced: bool,
pub base_ref: Option<String>,
pub compare: String,
pub commits: Vec<PushCommit>,
pub head_commit: Option<PushCommit>,
pub repository: Repository,
pub pusher: Pusher,
pub sender: User,
pub installation: Option<InstallationId>,
}
Fields§
§git_ref: String
The Git ref string that was pushed.
before: Oid
The commit hash of the branch before the push.
after: Oid
The commit hash of the branch after the push.
created: bool
true
if this is a new branch.
deleted: bool
true
if this branch is being deleted.
forced: bool
true
if this was a force-push.
base_ref: Option<String>
§compare: String
The URL to compare the changes with.
commits: Vec<PushCommit>
The list of commits that were pushed.
head_commit: Option<PushCommit>
The new head commit.
repository: Repository
The repository associated with this event.
pusher: Pusher
The user who pushed the branch. This is the same as the sender, except with less information.
sender: User
The user who triggered the event.
installation: Option<InstallationId>
The App installation ID. This is only present for GitHub App events.
Trait Implementations§
Source§impl AppEvent for PushEvent
impl AppEvent for PushEvent
Source§fn installation(&self) -> Option<u64>
fn installation(&self) -> Option<u64>
Returns the installation ID for the event.
Source§impl<'de> Deserialize<'de> for PushEvent
impl<'de> Deserialize<'de> for PushEvent
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
Source§impl Ord for PushEvent
impl Ord for PushEvent
Source§impl PartialOrd for PushEvent
impl PartialOrd for PushEvent
impl Eq for PushEvent
impl StructuralPartialEq for PushEvent
Auto Trait Implementations§
impl Freeze for PushEvent
impl RefUnwindSafe for PushEvent
impl Send for PushEvent
impl Sync for PushEvent
impl Unpin for PushEvent
impl UnwindSafe for PushEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more