pub struct HookEntry {Show 15 fields
pub name: String,
pub role: String,
pub listens: String,
pub at: Option<Point>,
pub on: Vec<String>,
pub runs: String,
pub state: TrustState,
pub digest: String,
pub files: Vec<HookFile>,
pub outside: Vec<String>,
pub definition: String,
pub trusted_definition: Option<String>,
pub recent: Vec<HookRun>,
pub trust_flag: String,
pub problem: Option<String>,
}Expand description
One hook as speccoder hooks shows it.
Fields§
§name: StringThe table’s name.
role: Stringgate or observer.
listens: StringWhat it guards or hears, in words.
at: Option<Point>Where a gate stands.
on: Vec<String>The events an observer hears.
runs: StringThe command it runs, or the URL it posts to.
state: TrustStateWhether it may run here.
digest: Stringsha256:<hex> over its definition and files.
files: Vec<HookFile>The repository files it runs.
outside: Vec<String>Programs it names outside the repository.
definition: StringIts definition as TOML, as a trust prompt shows it.
trusted_definition: Option<String>The definition last trusted, for a changed hook.
recent: Vec<HookRun>Its recent runs, oldest first.
trust_flag: StringThe flag that trusts it in CI: --trust-hook name=sha256:….
problem: Option<String>What keeps it from running here, with the fix (a missing program or signing variable).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HookEntry
impl<'de> Deserialize<'de> for HookEntry
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 JsonSchema for HookEntry
impl JsonSchema for HookEntry
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 HookEntry
Auto Trait Implementations§
impl Forget for HookEntry
impl Freeze for HookEntry
impl RefUnwindSafe for HookEntry
impl Send for HookEntry
impl Sync for HookEntry
impl Unpin for HookEntry
impl UnsafeUnpin for HookEntry
impl UnwindSafe for HookEntry
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