pub struct EmbeddedScriptProblemRecipe {
pub script: String,
pub args: Vec<String>,
}
Expand description
Recipe for the problem implemented by an embedded script.
Fields§
§script: String
Embedded script code.
args: Vec<String>
Command line arguments that are passed to the script.
Trait Implementations§
Source§impl Clone for EmbeddedScriptProblemRecipe
impl Clone for EmbeddedScriptProblemRecipe
Source§fn clone(&self) -> EmbeddedScriptProblemRecipe
fn clone(&self) -> EmbeddedScriptProblemRecipe
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EmbeddedScriptProblemRecipe
impl Debug for EmbeddedScriptProblemRecipe
Source§impl<'de> Deserialize<'de> for EmbeddedScriptProblemRecipe
impl<'de> Deserialize<'de> for EmbeddedScriptProblemRecipe
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 ProblemRecipe for EmbeddedScriptProblemRecipe
impl ProblemRecipe for EmbeddedScriptProblemRecipe
Source§type Factory = EmbeddedScriptProblemFactory
type Factory = EmbeddedScriptProblemFactory
The type of the factory creating problem instances from this recipe.
Source§fn create_factory(&self, registry: &FactoryRegistry) -> Result<Self::Factory>
fn create_factory(&self, registry: &FactoryRegistry) -> Result<Self::Factory>
Creates a problem factory.
Source§impl StructOpt for EmbeddedScriptProblemRecipe
impl StructOpt for EmbeddedScriptProblemRecipe
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec
of your making.
Print the error message and quit the program in case of failure. Read moreAuto Trait Implementations§
impl Freeze for EmbeddedScriptProblemRecipe
impl RefUnwindSafe for EmbeddedScriptProblemRecipe
impl Send for EmbeddedScriptProblemRecipe
impl Sync for EmbeddedScriptProblemRecipe
impl Unpin for EmbeddedScriptProblemRecipe
impl UnwindSafe for EmbeddedScriptProblemRecipe
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more