Struct cargo_scaffold::ScaffoldDescription
source · pub struct ScaffoldDescription { /* private fields */ }Implementations§
source§impl ScaffoldDescription
impl ScaffoldDescription
pub fn new(opts: Opts) -> Result<Self>
pub fn name(&self) -> Option<String>
sourcepub fn fetch_parameters_value(&self) -> Result<BTreeMap<String, Value>>
pub fn fetch_parameters_value(&self) -> Result<BTreeMap<String, Value>>
Launch prompt to the user to ask for different parameters
sourcepub fn scaffold_with_parameters(
&self,
parameters: BTreeMap<String, Value>
) -> Result<()>
pub fn scaffold_with_parameters( &self, parameters: BTreeMap<String, Value> ) -> Result<()>
Scaffold the project with the given parameters defined in the .scaffold.toml without prompting any inputs It’s a non-interactive mode
pub fn run_cmd(cmd: &str) -> Result<()>
pub fn setup_cmd(cmd: &str) -> Result<Command>
Trait Implementations§
source§impl<'de> Deserialize<'de> for ScaffoldDescription
impl<'de> Deserialize<'de> for ScaffoldDescription
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ScaffoldDescription
impl Send for ScaffoldDescription
impl Sync for ScaffoldDescription
impl Unpin for ScaffoldDescription
impl UnwindSafe for ScaffoldDescription
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