pub struct InitResponse {
pub files_created: Vec<PathBuf>,
pub next_steps: Vec<String>,
}Expand description
Response from a successful project initialization.
§Fields
files_created: Paths to all files that were creatednext_steps: User-friendly instructions for what to do next
§Example
ⓘ
let response = InitEngine::execute(request)?;
println!("Created {} files", response.files_created.len());
for step in &response.next_steps {
println!(" → {}", step);
}Fields§
§files_created: Vec<PathBuf>Absolute paths to all files that were created
next_steps: Vec<String>Next steps to guide the user (e.g., “cd my_api”, “pip install”, etc.)
Trait Implementations§
Source§impl Clone for InitResponse
impl Clone for InitResponse
Source§fn clone(&self) -> InitResponse
fn clone(&self) -> InitResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InitResponse
impl Debug for InitResponse
Auto Trait Implementations§
impl Freeze for InitResponse
impl RefUnwindSafe for InitResponse
impl Send for InitResponse
impl Sync for InitResponse
impl Unpin for InitResponse
impl UnsafeUnpin for InitResponse
impl UnwindSafe for InitResponse
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