pub struct CheckRunEvent { /* private fields */ }
Expand description
Check run event
A check run event contains the action that occurred, the latest state of the check run, and the repository that the check run was created in. If the webhook was configured for an organization, or if the repository is owned by one, the organization is included in the payload. If the event is sent to a GitHub App, the payload contains the installation.
Implementations§
Source§impl CheckRunEvent
impl CheckRunEvent
Sourcepub fn action(&self) -> CheckRunAction
pub fn action(&self) -> CheckRunAction
Returns the check run event’s action.
Sourcepub fn repository(&self) -> &Repository
pub fn repository(&self) -> &Repository
Returns the check run event’s repository.
Sourcepub fn organization(&self) -> &Option<Organization>
pub fn organization(&self) -> &Option<Organization>
Returns the check run event’s organization.
Sourcepub fn installation(&self) -> &Option<Installation>
pub fn installation(&self) -> &Option<Installation>
Returns the check run event’s installation.
Trait Implementations§
Source§impl Clone for CheckRunEvent
impl Clone for CheckRunEvent
Source§fn clone(&self) -> CheckRunEvent
fn clone(&self) -> CheckRunEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CheckRunEvent
impl Debug for CheckRunEvent
Source§impl<'de> Deserialize<'de> for CheckRunEvent
impl<'de> Deserialize<'de> for CheckRunEvent
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 Display for CheckRunEvent
impl Display for CheckRunEvent
Source§impl PartialEq for CheckRunEvent
impl PartialEq for CheckRunEvent
Source§impl Serialize for CheckRunEvent
impl Serialize for CheckRunEvent
impl Eq for CheckRunEvent
impl StructuralPartialEq for CheckRunEvent
Auto Trait Implementations§
impl Freeze for CheckRunEvent
impl RefUnwindSafe for CheckRunEvent
impl Send for CheckRunEvent
impl Sync for CheckRunEvent
impl Unpin for CheckRunEvent
impl UnwindSafe for CheckRunEvent
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.