Struct cargo_scaffold::ScaffoldDescription
source · [−]pub struct ScaffoldDescription { /* private fields */ }
Implementations
sourceimpl ScaffoldDescription
impl ScaffoldDescription
pub fn new(opts: Opts) -> Result<Self>
pub fn name(&self) -> Option<String>
pub fn parameters(&self) -> Option<&BTreeMap<String, Parameter>>
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
sourceimpl<'de> Deserialize<'de> for ScaffoldDescription
impl<'de> Deserialize<'de> for ScaffoldDescription
sourcefn 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
sourceimpl Serialize for ScaffoldDescription
impl Serialize for ScaffoldDescription
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more