pub struct GithubIntakeSource {
pub event_type: Option<String>,
}Expand description
GitHub intake source — handles workflow_run and check_run webhook payloads.
Dispatches on the X-GitHub-Event header. Because this source operates over
raw bytes, it accepts an optional event_type hint at construction time that
mirrors the X-GitHub-Event header value ("workflow_run" or "check_run").
Fields§
§event_type: Option<String>The expected GitHub event type (mirrors X-GitHub-Event header).
Defaults to dispatching by presence of known top-level keys when None.
Implementations§
Trait Implementations§
Source§impl Clone for GithubIntakeSource
impl Clone for GithubIntakeSource
Source§fn clone(&self) -> GithubIntakeSource
fn clone(&self) -> GithubIntakeSource
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 GithubIntakeSource
impl Debug for GithubIntakeSource
Source§impl IntakeSource for GithubIntakeSource
impl IntakeSource for GithubIntakeSource
Source§fn source_type(&self) -> IntakeSourceType
fn source_type(&self) -> IntakeSourceType
Get the source type
Source§fn process(&self, payload: &[u8]) -> IntakeResult<Vec<IntakeEvent>>
fn process(&self, payload: &[u8]) -> IntakeResult<Vec<IntakeEvent>>
Process incoming data and extract potential issues
Auto Trait Implementations§
impl Freeze for GithubIntakeSource
impl RefUnwindSafe for GithubIntakeSource
impl Send for GithubIntakeSource
impl Sync for GithubIntakeSource
impl Unpin for GithubIntakeSource
impl UnsafeUnpin for GithubIntakeSource
impl UnwindSafe for GithubIntakeSource
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