pub struct BuildOptions<'a> {
pub package: Option<&'a str>,
pub features: Option<&'a str>,
pub profile: &'a str,
pub target_specification_path: &'a Path,
pub target_dir: Option<&'a Path>,
}Expand description
Options for building a contract
Fields§
§package: Option<&'a str>Package to build.
A package in the current directory is built if not specified explicitly.
features: Option<&'a str>Comma separated list of features to activate
profile: &'a strBuild artifacts with the specified profile
target_specification_path: &'a PathPath to the target specification JSON file
target_dir: Option<&'a Path>Custom target directory to use instead of the default one
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BuildOptions<'a>
impl<'a> RefUnwindSafe for BuildOptions<'a>
impl<'a> Send for BuildOptions<'a>
impl<'a> Sync for BuildOptions<'a>
impl<'a> Unpin for BuildOptions<'a>
impl<'a> UnwindSafe for BuildOptions<'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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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