Struct automatons_github::event::CheckRunEvent
source · [−]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
sourceimpl 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
sourceimpl Clone for CheckRunEvent
impl Clone for CheckRunEvent
sourcefn clone(&self) -> CheckRunEvent
fn clone(&self) -> CheckRunEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CheckRunEvent
impl Debug for CheckRunEvent
sourceimpl<'de> Deserialize<'de> for CheckRunEvent
impl<'de> Deserialize<'de> for CheckRunEvent
sourcefn 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
sourceimpl Display for CheckRunEvent
impl Display for CheckRunEvent
sourceimpl PartialEq<CheckRunEvent> for CheckRunEvent
impl PartialEq<CheckRunEvent> for CheckRunEvent
sourcefn eq(&self, other: &CheckRunEvent) -> bool
fn eq(&self, other: &CheckRunEvent) -> bool
sourceimpl Serialize for CheckRunEvent
impl Serialize for CheckRunEvent
impl Eq for CheckRunEvent
impl StructuralEq for CheckRunEvent
impl StructuralPartialEq for CheckRunEvent
Auto Trait Implementations
impl RefUnwindSafe for CheckRunEvent
impl Send for CheckRunEvent
impl Sync for CheckRunEvent
impl Unpin for CheckRunEvent
impl UnwindSafe for CheckRunEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.