pub struct SettingsBuilder { /* private fields */ }
Expand description
A builder for Settings
.
Implementations§
Source§impl SettingsBuilder
impl SettingsBuilder
Sourcepub fn project_out_directory<P: AsRef<Path>>(self, path: P) -> Self
pub fn project_out_directory<P: AsRef<Path>>(self, path: P) -> Self
Sets the project output directory. It’s used as current working directory.
Sourcepub fn local_tools_directory<P: AsRef<Path>>(self, path: P) -> Self
pub fn local_tools_directory<P: AsRef<Path>>(self, path: P) -> Self
Sets the directory to place tools used by the bundler
when [BundleSettings::use_local_tools_dir
] is true.
Sourcepub fn package_types(self, package_types: Vec<PackageType>) -> Self
pub fn package_types(self, package_types: Vec<PackageType>) -> Self
Sets the package types to create.
Sourcepub fn package_settings(self, settings: PackageSettings) -> Self
pub fn package_settings(self, settings: PackageSettings) -> Self
Sets the package settings.
Sourcepub fn bundle_settings(self, settings: BundleSettings) -> Self
pub fn bundle_settings(self, settings: BundleSettings) -> Self
Sets the bundle settings.
Sourcepub fn binaries(self, binaries: Vec<BundleBinary>) -> Self
pub fn binaries(self, binaries: Vec<BundleBinary>) -> Self
Sets the binaries to bundle.
Sourcepub fn log_level(self, level: Level) -> Self
pub fn log_level(self, level: Level) -> Self
Sets the log level for spawned commands. Defaults to log::Level::Error
.
Trait Implementations§
Source§impl Default for SettingsBuilder
impl Default for SettingsBuilder
Source§fn default() -> SettingsBuilder
fn default() -> SettingsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SettingsBuilder
impl RefUnwindSafe for SettingsBuilder
impl Send for SettingsBuilder
impl Sync for SettingsBuilder
impl Unpin for SettingsBuilder
impl UnwindSafe for SettingsBuilder
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.