pub struct Event {
pub number: i64,
pub kind: ItemKind,
pub trigger: Trigger,
pub who: Option<String>,
pub head: Option<(String, String)>,
pub commits: Option<u64>,
pub from_thread: bool,
}Expand description
One thing that happened to one item.
Fields§
§number: i64§kind: ItemKind§trigger: Trigger§who: Option<String>Who did it, when GitHub said.
head: Option<(String, String)>The old and new head, for a push.
commits: Option<u64>New commits since the review, when cheap to know.
from_thread: boolRaised by a notification thread, whose reason is the one the thread began with: the trigger says how the thread started, not always what just happened on it.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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.