pub struct InitOutput {
pub output: CommandOutput,
pub version_requested: bool,
}
Expand description
Result from the init command execution
Fields§
§output: CommandOutput
Raw command output
version_requested: bool
Whether version was requested
Implementations§
Source§impl InitOutput
impl InitOutput
Sourcepub fn is_version_output(&self) -> bool
pub fn is_version_output(&self) -> bool
Check if this was a version request
Sourcepub fn files_created(&self) -> bool
pub fn files_created(&self) -> bool
Check if files were likely created (interactive mode completed successfully)
Trait Implementations§
Source§impl Clone for InitOutput
impl Clone for InitOutput
Source§fn clone(&self) -> InitOutput
fn clone(&self) -> InitOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InitOutput
impl RefUnwindSafe for InitOutput
impl Send for InitOutput
impl Sync for InitOutput
impl Unpin for InitOutput
impl UnwindSafe for InitOutput
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