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