pub struct InitInput {
pub defaults: bool,
pub git_config: Option<GitSettingsInput>,
pub changelog_config: Option<ChangelogSettingsInput>,
pub version_config: Option<VersionSettingsInput>,
}Expand description
Input for the init operation.
Configuration sources have the following precedence (highest to lowest):
defaults: true- Uses all default values, ignores other fields- Explicit
git_config,changelog_config,version_configfields - Interactive prompts via
InitInteractionProvider(only if no explicit config)
Fields§
§defaults: bool§git_config: Option<GitSettingsInput>§changelog_config: Option<ChangelogSettingsInput>§version_config: Option<VersionSettingsInput>Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitInput
impl RefUnwindSafe for InitInput
impl Send for InitInput
impl Sync for InitInput
impl Unpin for InitInput
impl UnsafeUnpin for InitInput
impl UnwindSafe for InitInput
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 more