pub struct HookRun {
pub at: String,
pub what: String,
pub outcome: String,
pub duration_ms: u64,
pub error: Option<String>,
}Expand description
One run of a hook.
Fields§
§at: StringWhen it started (RFC 3339).
what: StringThe event id, tick T004, pr or test.
outcome: Stringdelivered, failed, passed, blocked, not_run, skipped_untrusted.
duration_ms: u64How long it ran.
error: Option<String>Why it failed or blocked.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HookRun
impl<'de> Deserialize<'de> for HookRun
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
impl Eq for HookRun
Source§impl JsonSchema for HookRun
impl JsonSchema for HookRun
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for HookRun
Auto Trait Implementations§
impl Forget for HookRun
impl Freeze for HookRun
impl RefUnwindSafe for HookRun
impl Send for HookRun
impl Sync for HookRun
impl Unpin for HookRun
impl UnsafeUnpin for HookRun
impl UnwindSafe for HookRun
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