#[non_exhaustive]pub struct CargoNewConfig {
pub vcs: Option<VersionControlSoftware>,
}Expand description
The [cargo-new] table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vcs: Option<VersionControlSoftware>Specifies the source control system to use for initializing a new repository. Valid values are git, hg (for Mercurial), pijul, fossil or none to disable this behavior. Defaults to git, or none if already inside a VCS repository. Can be overridden with the –vcs CLI option.
Trait Implementations§
Source§impl Clone for CargoNewConfig
impl Clone for CargoNewConfig
Source§fn clone(&self) -> CargoNewConfig
fn clone(&self) -> CargoNewConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CargoNewConfig
impl Debug for CargoNewConfig
Source§impl Default for CargoNewConfig
impl Default for CargoNewConfig
Source§fn default() -> CargoNewConfig
fn default() -> CargoNewConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CargoNewConfig
impl RefUnwindSafe for CargoNewConfig
impl Send for CargoNewConfig
impl Sync for CargoNewConfig
impl Unpin for CargoNewConfig
impl UnsafeUnpin for CargoNewConfig
impl UnwindSafe for CargoNewConfig
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