pub struct Opts {
pub pkg: PkgOpts,
pub print: PrintOpts,
pub minify: MinifyOpts,
pub binary_outfile: Option<String>,
pub debug_outfile: Option<String>,
pub build_profile: Option<String>,
pub release: bool,
pub time_phases: bool,
}Expand description
The set of options provided to the test function.
Fields
pkg: PkgOptsprint: PrintOptsminify: MinifyOptsbinary_outfile: Option<String>If set, outputs a binary file representing the script bytes.
debug_outfile: Option<String>If set, outputs source file mapping in JSON format
build_profile: Option<String>Name of the build profile to use. If it is not specified, forc will use debug build profile.
release: boolUse release build plan. If a custom release plan is not specified, it is implicitly added to the manifest file.
If –build-profile is also provided, forc omits this flag and uses provided build-profile.
time_phases: boolOutput the time elapsed over each part of the compilation process.
Implementations
sourceimpl Opts
impl Opts
sourcepub fn into_build_opts(self) -> BuildOpts
pub fn into_build_opts(self) -> BuildOpts
Convet this set of test options into a set of build options.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more