pub struct RunHook {
pub overlay: String,
pub event: String,
pub argv: Vec<String>,
pub root: String,
pub state: String,
pub session: String,
pub select: Option<Vec<String>>,
pub sets: Vec<String>,
pub timeout: u64,
pub refuse: bool,
}Expand description
One overlay hook that is on for a Run: what runs it and what it is told, resolved by the
Station for the host the harness runs on (spec/v0/hooks.md).
Fields§
§overlay: StringThe overlay that declares it, by identity.
event: StringThe event, as the overlay names it (pre-tool).
argv: Vec<String>The program and arguments that run the hook’s script, never read by a shell.
root: StringThe overlay’s read-only root.
state: StringThe overlay’s state directory.
session: StringThe Station’s own name for the Run, which a hook is told as its session.
select: Option<Vec<String>>The reasons or tool kinds it runs for; none is every one.
sets: Vec<String>The variables its output may set.
timeout: u64Seconds it may run, held to the Station’s bound.
refuse: boolWhether its failure stops the event (on_failure = "refuse").
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunHook
impl<'de> Deserialize<'de> for RunHook
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 RunHook
Source§impl FromValue for RunHook
impl FromValue for RunHook
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl Schema for RunHook
impl Schema for RunHook
impl StructuralPartialEq for RunHook
Auto Trait Implementations§
impl Freeze for RunHook
impl RefUnwindSafe for RunHook
impl Send for RunHook
impl Sync for RunHook
impl Unpin for RunHook
impl UnsafeUnpin for RunHook
impl UnwindSafe for RunHook
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.