pub struct GateRecord {
pub name: String,
pub point: Point,
pub outcome: GateState,
pub reason: Option<String>,
pub code: Option<String>,
pub duration_ms: u64,
}Expand description
One gate’s run at its point, as a report and the evidence carry it.
Fields§
§name: StringThe hook’s name.
point: PointWhere it stood.
outcome: GateStateHow it ended.
reason: Option<String>Why it blocked.
code: Option<String>HOOK-BLOCKED, or HOOK-UNTRUSTED for a gate that waits for trust.
duration_ms: u64How long it ran.
Implementations§
Source§impl GateRecord
impl GateRecord
Sourcepub fn blocked_line(&self) -> String
pub fn blocked_line(&self) -> String
The one line a blocked point shows: Blocked by licence — <reason>.
Trait Implementations§
Source§impl Clone for GateRecord
impl Clone for GateRecord
Source§impl Debug for GateRecord
impl Debug for GateRecord
Source§impl<'de> Deserialize<'de> for GateRecord
impl<'de> Deserialize<'de> for GateRecord
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 GateRecord
Source§impl JsonSchema for GateRecord
impl JsonSchema for GateRecord
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 moreSource§impl PartialEq for GateRecord
impl PartialEq for GateRecord
Source§impl Serialize for GateRecord
impl Serialize for GateRecord
impl StructuralPartialEq for GateRecord
Auto Trait Implementations§
impl Forget for GateRecord
impl Freeze for GateRecord
impl RefUnwindSafe for GateRecord
impl Send for GateRecord
impl Sync for GateRecord
impl Unpin for GateRecord
impl UnsafeUnpin for GateRecord
impl UnwindSafe for GateRecord
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