pub struct GenerateContributorArgs {
pub spec: String,
pub project_root: Option<PathBuf>,
pub force: bool,
pub auto_register: bool,
}Expand description
Decoded form of the g contributor subcommand.
Fields§
§spec: String<module>/<contributor_snake> spec.
project_root: Option<PathBuf>Override the project root.
force: boolOverwrite the contributor file if it already exists.
auto_register: boolTry to auto-insert use <name>::<Pascal>; + .contribute(Pascal)
into the parent module’s mod.rs.
Auto Trait Implementations§
impl Freeze for GenerateContributorArgs
impl RefUnwindSafe for GenerateContributorArgs
impl Send for GenerateContributorArgs
impl Sync for GenerateContributorArgs
impl Unpin for GenerateContributorArgs
impl UnsafeUnpin for GenerateContributorArgs
impl UnwindSafe for GenerateContributorArgs
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