pub struct ConfigBuilder(/* private fields */);Expand description
A builder type for Config.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn product_name<S: Into<String>>(self, product_name: S) -> Self
pub fn product_name<S: Into<String>>(self, product_name: S) -> Self
Sets Config::product_name.
Sourcepub fn version<S: Into<String>>(self, version: S) -> Self
pub fn version<S: Into<String>>(self, version: S) -> Self
Sets Config::version.
Sourcepub fn binaries<I: IntoIterator<Item = Binary>>(self, binaries: I) -> Self
pub fn binaries<I: IntoIterator<Item = Binary>>(self, binaries: I) -> Self
Sets Config::binaries.
Sourcepub fn identifier<S: Into<String>>(self, identifier: S) -> Self
pub fn identifier<S: Into<String>>(self, identifier: S) -> Self
Sets Config::identifier.
Sourcepub fn before_packaging_command(self, command: HookCommand) -> Self
pub fn before_packaging_command(self, command: HookCommand) -> Self
Sourcepub fn before_each_package_command(self, command: HookCommand) -> Self
pub fn before_each_package_command(self, command: HookCommand) -> Self
Sourcepub fn log_level(self, level: LogLevel) -> Self
pub fn log_level(self, level: LogLevel) -> Self
Sets Config::log_level.
Sourcepub fn formats<I: IntoIterator<Item = PackageFormat>>(self, formats: I) -> Self
pub fn formats<I: IntoIterator<Item = PackageFormat>>(self, formats: I) -> Self
Sets Config::formats.
Sourcepub fn out_dir<P: Into<PathBuf>>(self, path: P) -> Self
pub fn out_dir<P: Into<PathBuf>>(self, path: P) -> Self
Sets Config::out_dir.
Sourcepub fn target_triple<S: Into<String>>(self, target_triple: S) -> Self
pub fn target_triple<S: Into<String>>(self, target_triple: S) -> Self
Sets Config::target_triple.
Sourcepub fn description<S: Into<String>>(self, description: S) -> Self
pub fn description<S: Into<String>>(self, description: S) -> Self
Sets Config::description.
Sourcepub fn long_description<S: Into<String>>(self, long_description: S) -> Self
pub fn long_description<S: Into<String>>(self, long_description: S) -> Self
Sets Config::long_description.
Sourcepub fn homepage<S: Into<String>>(self, homepage: S) -> Self
pub fn homepage<S: Into<String>>(self, homepage: S) -> Self
Sets Config::homepage.
Sets Config::authors.
Sourcepub fn publisher<S: Into<String>>(self, publisher: S) -> Self
pub fn publisher<S: Into<String>>(self, publisher: S) -> Self
Sets Config::publisher.
Sourcepub fn license_file<P: Into<PathBuf>>(self, license_file: P) -> Self
pub fn license_file<P: Into<PathBuf>>(self, license_file: P) -> Self
Sets Config::license_file.
Sourcepub fn copyright<S: Into<String>>(self, copyright: S) -> Self
pub fn copyright<S: Into<String>>(self, copyright: S) -> Self
Sets Config::copyright.
Sourcepub fn icons<I, S>(self, icons: I) -> Self
pub fn icons<I, S>(self, icons: I) -> Self
Sets Config::icons.
Sourcepub fn file_associations<I: IntoIterator<Item = FileAssociation>>(
self,
file_associations: I,
) -> Self
pub fn file_associations<I: IntoIterator<Item = FileAssociation>>( self, file_associations: I, ) -> Self
Sourcepub fn resources<I: IntoIterator<Item = Resource>>(self, resources: I) -> Self
pub fn resources<I: IntoIterator<Item = Resource>>(self, resources: I) -> Self
Sets Config::resources.
Sourcepub fn external_binaries<I, P>(self, external_binaries: I) -> Self
pub fn external_binaries<I, P>(self, external_binaries: I) -> Self
Sourcepub fn windows(self, windows: WindowsConfig) -> Self
pub fn windows(self, windows: WindowsConfig) -> Self
Set the Windows specific configuration.
Sourcepub fn macos(self, macos: MacOsConfig) -> Self
pub fn macos(self, macos: MacOsConfig) -> Self
Set the MacOS specific configuration.
Sourcepub fn nsis(self, nsis: NsisConfig) -> Self
pub fn nsis(self, nsis: NsisConfig) -> Self
Set the Nsis specific configuration.
Sourcepub fn deb(self, deb: DebianConfig) -> Self
pub fn deb(self, deb: DebianConfig) -> Self
Set the Debian specific configuration.
Sourcepub fn appimage(self, appimage: AppImageConfig) -> Self
pub fn appimage(self, appimage: AppImageConfig) -> Self
Set the Appimage specific configuration.
Sourcepub fn pacman(self, pacman: PacmanConfig) -> Self
pub fn pacman(self, pacman: PacmanConfig) -> Self
Set the Pacman specific configuration.
Trait Implementations§
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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> 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> 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