pub struct WebhookContext {
pub runner: Option<String>,
pub model: Option<String>,
pub phase: Option<u8>,
pub phase_count: Option<u8>,
pub duration_ms: Option<u64>,
pub repo_root: Option<String>,
pub branch: Option<String>,
pub commit: Option<String>,
pub ci_gate: Option<String>,
}Expand description
Optional context metadata for webhook payloads. These fields are only serialized when set (Some).
Fields§
§runner: Option<String>Runner used for this phase/execution (e.g., “claude”, “codex”).
model: Option<String>Model used for this phase/execution.
phase: Option<u8>Current phase number (1, 2, or 3).
phase_count: Option<u8>Total number of phases configured.
duration_ms: Option<u64>Duration in milliseconds (for completed operations).
repo_root: Option<String>Repository root path.
branch: Option<String>Current git branch.
commit: Option<String>Current git commit hash.
ci_gate: Option<String>CI gate outcome: “skipped”, “passed”, or “failed”.
Trait Implementations§
Source§impl Clone for WebhookContext
impl Clone for WebhookContext
Source§fn clone(&self) -> WebhookContext
fn clone(&self) -> WebhookContext
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 WebhookContext
impl Debug for WebhookContext
Source§impl Default for WebhookContext
impl Default for WebhookContext
Source§fn default() -> WebhookContext
fn default() -> WebhookContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookContext
impl<'de> Deserialize<'de> for WebhookContext
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
Auto Trait Implementations§
impl Freeze for WebhookContext
impl RefUnwindSafe for WebhookContext
impl Send for WebhookContext
impl Sync for WebhookContext
impl Unpin for WebhookContext
impl UnsafeUnpin for WebhookContext
impl UnwindSafe for WebhookContext
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