Enum tide_github::Event
source · [−]#[non_exhaustive]
pub enum Event {
IssuesComment,
}
Expand description
This enum represents the event (and its variants the event type) for which we can receive a Github webhook.
Github sends the type of the event (and thus of the payload) as the X-github-Event
header
that we parse into an Event
by implementing ::std::str::FromStr
for it.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IssuesComment
The Github
IssueCommentEvent
event.
Trait Implementations
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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