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§impl Debug for InitResponse
impl Debug for InitResponse
Source§impl JsonSchema for InitResponse
impl JsonSchema for InitResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto 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