pub struct OutputContext<'a> {
pub spec: Option<&'a OutputSpec>,
pub validators: Option<&'a OutputValidators>,
pub stage: &'a str,
pub stage_names: &'a [String],
pub workdir: Option<&'a Path>,
}Expand description
Everything a submission is judged against that is not the submission.
Grouped rather than threaded positionally: these five travel together, three
of them are Option<&_>, and the two &str-ish ones sit adjacent - a
transposition type-checks, and the compiler is the only thing that was ever
going to notice. Adding the stage-name list as a seventh positional argument
is what pushed this over the workspace’s argument-count lint, which does not
permit a suppression.
Fields§
§spec: Option<&'a OutputSpec>The shape this stage asked for: format, schema, validator.
validators: Option<&'a OutputValidators>The agent’s own Rhai validators, by script name.
stage: &'a strThe stage doing the submitting, recorded on the answer.
stage_names: &'a [String]Every stage name in this blueprint, for the routing-token guard.
workdir: Option<&'a Path>Where relative artifact paths resolve from.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OutputContext<'a>
impl<'a> !UnwindSafe for OutputContext<'a>
impl<'a> Freeze for OutputContext<'a>
impl<'a> Send for OutputContext<'a>
impl<'a> Sync for OutputContext<'a>
impl<'a> Unpin for OutputContext<'a>
impl<'a> UnsafeUnpin for OutputContext<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.