#[non_exhaustive]pub struct PushEvent {
pub repo: Resource,
pub repo_id: u64,
pub git_ref: String,
pub before: String,
pub after: String,
pub created: bool,
pub deleted: bool,
pub forced: bool,
pub sender_login: String,
pub sender_id: u64,
pub delivery_id: Option<String>,
pub pushed_at: Option<i64>,
}Expand description
One verified push delivery.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repo: ResourceThe repository pushed to.
repo_id: u64Its forge id.
git_ref: StringThe full ref (refs/heads/dependabot/cargo/foo-1.2.3).
before: StringThe ref’s value before the push (ZERO_SHA when it was created).
after: StringIts value after (ZERO_SHA when it was deleted).
created: boolThe push created the ref.
deleted: boolThe push deleted the ref.
forced: boolThe push was not a fast-forward.
sender_login: StringThe login of the account GitHub says pushed.
sender_id: u64That account’s numeric id.
delivery_id: Option<String>GitHub’s delivery id.
pushed_at: Option<i64>repository.pushed_at: when GitHub says the repository was last
pushed to, as it built this delivery (Unix seconds). The signature
covers it, so an old delivery replayed keeps its old time.
Implementations§
Trait Implementations§
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.