pub struct PushEvent {
pub ref_name: String,
pub before: String,
pub after: String,
pub created: bool,
pub deleted: bool,
pub forced: bool,
pub commits: Vec<Commit>,
pub head_commit: Option<Commit>,
pub repository: Repository,
pub sender: EventUser,
}Expand description
Push event with commit information.
Fields§
§ref_name: StringGit ref that was pushed (e.g., “refs/heads/main”)
before: StringCommit SHA before the push
after: StringCommit SHA after the push
created: boolWhether this push created the ref
deleted: boolWhether this push deleted the ref
forced: boolWhether this was a force push
commits: Vec<Commit>Commits included in the push
head_commit: Option<Commit>The most recent commit
repository: RepositoryRepository information
sender: EventUserUser who triggered the event
Trait Implementations§
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
Auto Trait Implementations§
impl Freeze for PushEvent
impl RefUnwindSafe for PushEvent
impl Send for PushEvent
impl Sync for PushEvent
impl Unpin for PushEvent
impl UnsafeUnpin 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