pub struct GeneratedProject {
pub files: Vec<GeneratedFile>,
pub warnings: Vec<String>,
pub post_create_actions: Vec<PostCreateAction>,
}Expand description
The result of generating a scaffold: the files to write, advisory warnings, and side effects for the caller to perform. Filesystem-agnostic.
Fields§
§files: Vec<GeneratedFile>Files to write, with paths relative to the project directory.
warnings: Vec<String>Non-fatal advisory messages (e.g. a requested feature not yet generated).
post_create_actions: Vec<PostCreateAction>Side effects the caller should perform after writing files.
Trait Implementations§
Source§impl Clone for GeneratedProject
impl Clone for GeneratedProject
Source§fn clone(&self) -> GeneratedProject
fn clone(&self) -> GeneratedProject
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 GeneratedProject
impl Debug for GeneratedProject
Source§impl Default for GeneratedProject
impl Default for GeneratedProject
Source§fn default() -> GeneratedProject
fn default() -> GeneratedProject
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GeneratedProject
impl RefUnwindSafe for GeneratedProject
impl Send for GeneratedProject
impl Sync for GeneratedProject
impl Unpin for GeneratedProject
impl UnsafeUnpin for GeneratedProject
impl UnwindSafe for GeneratedProject
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