pub struct ScmWebhookEvent {
pub provider: String,
pub kind: ScmWebhookEventKind,
pub action: String,
pub raw_event_type: String,
pub delivery_id: Option<String>,
pub repository: Option<ScmWebhookRepository>,
pub pr_number: Option<u32>,
pub branch: Option<String>,
pub sha: Option<String>,
pub data: Value,
}Expand description
Provider-agnostic webhook event. data carries the full raw payload so
a downstream consumer can extract details we haven’t normalised.
Fields§
§provider: StringPlugin name that produced this event ("github", "gitlab", …).
kind: ScmWebhookEventKind§action: StringProvider-specific action string (e.g. "opened", "synchronize").
raw_event_type: StringRaw event type header (e.g. "pull_request", "check_run").
delivery_id: Option<String>§repository: Option<ScmWebhookRepository>§pr_number: Option<u32>§branch: Option<String>§sha: Option<String>§data: ValueRaw JSON payload. serde_json::Value rather than a typed struct
because every provider has its own payload shape and we don’t want
to maintain per-provider types in the domain layer.
Trait Implementations§
Source§impl Clone for ScmWebhookEvent
impl Clone for ScmWebhookEvent
Source§fn clone(&self) -> ScmWebhookEvent
fn clone(&self) -> ScmWebhookEvent
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 ScmWebhookEvent
impl Debug for ScmWebhookEvent
Source§impl<'de> Deserialize<'de> for ScmWebhookEvent
impl<'de> Deserialize<'de> for ScmWebhookEvent
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 PartialEq for ScmWebhookEvent
impl PartialEq for ScmWebhookEvent
Source§impl Serialize for ScmWebhookEvent
impl Serialize for ScmWebhookEvent
impl Eq for ScmWebhookEvent
impl StructuralPartialEq for ScmWebhookEvent
Auto Trait Implementations§
impl Freeze for ScmWebhookEvent
impl RefUnwindSafe for ScmWebhookEvent
impl Send for ScmWebhookEvent
impl Sync for ScmWebhookEvent
impl Unpin for ScmWebhookEvent
impl UnsafeUnpin for ScmWebhookEvent
impl UnwindSafe for ScmWebhookEvent
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.